Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Like syntax
Message
 
 
To
06/03/2008 15:14:56
General information
Forum:
Microsoft SQL Server
Category:
SQL syntax
Title:
Miscellaneous
Thread ID:
01299491
Message ID:
01299496
Views:
10
This message has been marked as a message which has helped to the initial question of the thread.
>Hi All,
>
>I have looked at the BOL, but it only shows one item per LIKE. Is this correct, or can you have multiple items per LIKE?
>
>I am trying to do an INLIST() in SQL Server. INLIST is partial matching, if you do not pad the items in the list. That is what I need to do now.
>
>Or, do I have to do fieldname LIKE 'A%' or fieldname LIKE 'D%' or fieldname LIKE 'Z%', etc?
>
>TIA
>Beth

You would have to constract it as myID like 'A%' or ....

If it's always one character you can use susbstring()/LEFT() and IN (...)
If it's not broken, fix it until it is.


My Blog
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform