Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Why error out in 'less Than Sign'
Message
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Syntaxe SQL
Titre:
Why error out in 'less Than Sign'
Versions des environnements
SQL Server:
SQL Server 2005
Divers
Thread ID:
01323151
Message ID:
01323151
Vues:
73
Hi all,

Can somebody explain why I got error in here,

declare @price as int
set @price = 5
SELECT iif( @price < 0 , 'red', 'black' )


Msg 102, Level 15, State 1, Line 3
Incorrect syntax near '<'.
Gregorio J. Placeres
IT Analyst
Uniform Accounting Network
Auditor of State of Ohio
88 East Broad Street
P.O. Box 1140
Columbus, Ohio 43216-1140

Tel. 614-728-4694

Gregorio_J@MSN.COM

http://www.gjpproductions.com
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform