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:
01437017
Vues:
33
This message has been marked as a message which has helped to the initial question of the thread.
>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
If it's not broken, fix it until it is.


My Blog
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform