Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
In and like
Message
General information
Forum:
Microsoft SQL Server
Category:
SQL syntax
Title:
Miscellaneous
Thread ID:
00889397
Message ID:
00889401
Views:
18
...
where carrier_name LIKE 'ALLTEL%' 
         OR carrier_name LIKE 'Ameritech%'
>Hi All:
> I want to combine in and like function together in one statement. Like so:
>
>Select carrier_name from carrier where carrier_name like in('ALLTEL%','Ameritech%')
>I get an error. The error is: Line 10: Incorrect syntax near ','.
>How can I combine the in and like functions?
>Thanks
>MA
--sb--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform