Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Where of Int type column with coalesce
Message
 
 
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Stored procedures, Triggers, UDFs
Versions des environnements
SQL Server:
SQL Server 2005
Divers
Thread ID:
01437000
Message ID:
01437044
Vues:
36
>>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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform