Forum Replies Created

Viewing post 1 (of 1 total)

  • RE: SET vs. SELECT

    Tricky question

    Sorry I didn't understand it clearly.

    Why both of below queries give Null Values.

    DECLARE @a INT=0;

    DECLARE @b-2 INT=0;

    SET @a = (select 1 where 1=2);

    SELECT...

Viewing post 1 (of 1 total)