Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Why error out in 'less Than Sign'
Message
General information
Forum:
Microsoft SQL Server
Category:
SQL syntax
Environment versions
SQL Server:
SQL Server 2005
Miscellaneous
Thread ID:
01323151
Message ID:
01323153
Views:
13
This message has been marked as the solution to the initial question of the thread.
>Hi all,
>
>Can somebody explain why I got error in here,
>
>declare @price as int
>set @price = 5
>SELECT iif( @price < 0 , 'red', 'black' )
>

Where is no IIF in SQL Server. Use CASE construct instead.

See http://fox.wikis.com/wc.dll?Wiki~VFPSQL-TSQL-Mapping
If it's not broken, fix it until it is.


My Blog
Previous
Reply
Map
View

Click here to load this message in the networking platform