Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Where of Int type column with coalesce
Message
From
01/12/2009 09:08:01
 
General information
Forum:
Microsoft SQL Server
Category:
Stored procedures, Triggers, UDFs
Environment versions
SQL Server:
SQL Server 2005
Miscellaneous
Thread ID:
01437000
Message ID:
01437044
Views:
37
>>By the way, your syntax "insert into @t select 1 union select null union select 2" I have never seen before. It is very interesting. I am going to study it to figure out what are you doing here <g>.
>
>It's common syntax for SQL Server, but I don't know if it works in other databases. In SQL Server 2008 you can use even easier version like
>
>insert into @t values (1), (Null), (3)
>
>Also in SQL Server 2008 you can use shortcuts like
>
>declare @Param = null
>
>or
>
>set i=++ -- the later version I personally never use, I always use the full syntax

Thank you for sharing these tips.
"The creative process is nothing but a series of crises." Isaac Bashevis Singer
"My experience is that as soon as people are old enough to know better, they don't know anything at all." Oscar Wilde
"If a nation values anything more than freedom, it will lose its freedom; and the irony of it is that if it is comfort or money that it values more, it will lose that too." W.Somerset Maugham
Previous
Reply
Map
View

Click here to load this message in the networking platform