Wednesday, June 26, 2013

SQL Server Interesting Fact

Just try out this

DECLARE @ AS INT
SET @= 6
PRINT @

What you think by looking code?
Isn't it throw an error....but
that's true internally '@' is treated as variable so it will show you output as normal variable.
Just try it..

No comments:

Post a Comment