Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Where clause with integer
Message
 
 
À
19/10/2011 11:11:38
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Syntaxe SQL
Versions des environnements
SQL Server:
SQL Server 2008
Application:
Web
Divers
Thread ID:
01526883
Message ID:
01526892
Vues:
46
This message has been marked as a message which has helped to the initial question of the thread.
>>It implicity converts '1' to the higher precedence which is integer.
>>
>>Take a look at this
>>Data Type Precedence (Transact-SQL)
>>
>>Integer has higher precedence than char.
>
>Interesting, thanks

You would not believe it, but I just had to deal with a very similar problem myself - fixing bug in my code.

I wrote about it here
http://beyondrelational.com/justlearned/posts/748/be-careful-with-implicit-conversions.aspx
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