Tuesday, December 24, 2019

Complicated Comments

This is a simpler version of a post I made 10 years ago.


DECLARE @x int

/*

-- */

SET @x = 1

-- /*

--*/ SET @x = 2

PRINT @x





Question: after running the statement above, what will the output be?

  1. 1
  2. 2
  3. Null
  4. An error occurs.

No comments:

Post a Comment