|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Too many "LIKE ... OR...OR...OR...OR..." in a SQL Statement?
I have a page which I intend to have an unlimited number of thumbnails on, each with an adjoining check box, whose value will be the "ID" for that image. In submitting, I intend to build and store a string which will have each ID number seperated by " OR ". As you can imagine, this may get rather long. Would it be a problem to have a string, say 20 or 30 ID's long to specify in my SQL statement, such as "Select * From Image WHERE ID=" string
THanks so much.
__________________
Today the world, tomorrow the universe... |
|
#2
|
||||
|
||||
|
Do you know how to use the IN statement? Perhaps use that? Maybe I'm not understanding your question. If this doesn't help, clarify your question some...
__________________
Reinventing the wheel again |
![]() |
| Viewing: Dev Shed Forums > Databases > MS SQL Development > Too many "LIKE ... OR...OR...OR...OR..." in a SQL Statement? |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|