Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
IF statement
Message
General information
Forum:
Microsoft SQL Server
Category:
SQL syntax
Title:
IF statement
Miscellaneous
Thread ID:
00962743
Message ID:
00962743
Views:
44
I thought this was as simple as it gets but:
Can someone tell me why the following IF statement fails?
I would have expected this to match but my SET command only executes if I set the condition to !=.

Declare @oscString character
declare @sOsmOsc character
set @sOsmOsc = 'OSC'

IF @sOsmOsc = 'OSC'
SET @oscString = 'T'
Chris
Next
Reply
Map
View

Click here to load this message in the networking platform