|
|
|||||||||
|
|||||||||
|
|||||||||
| |
||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
SQL like statement
What is the convention used to do a like search for more than one item?
Something like select * from .... where .... like '123%', but I would like to search for '123%' and '456%'. Help will be appreciated. Thanks! |
|
#2
|
||||
|
||||
|
Code:
SELECT * FROM TableName WHERE Field1 LIKE '123%' OR Field1 LIKE '456%' |
![]() |
| Viewing: ASP Free Forums > Database > Microsoft SQL Server > SQL like statement |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|