MS SQL Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsDatabasesMS SQL Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old April 3rd, 2004, 11:27 AM
thall89553 thall89553 is offline
Contributing User
Dev Shed Beginner (1000 - 1499 posts)
 
Join Date: Jan 2004
Location: Budapest
Posts: 1,421 thall89553 User rank is Private First Class (20 - 50 Reputation Level)thall89553 User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: 4 Days 15 h 36 m 55 sec
Reputation Power: 6
Send a message via Yahoo to thall89553
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...

Reply With Quote
  #2  
Old April 3rd, 2004, 11:32 AM
mateoc15's Avatar
mateoc15 mateoc15 is offline
C A R D S
Dev Shed Novice (500 - 999 posts)
 
Join Date: Mar 2004
Location: The 'Ville
Posts: 779 mateoc15 User rank is Sergeant (500 - 2000 Reputation Level)mateoc15 User rank is Sergeant (500 - 2000 Reputation Level)mateoc15 User rank is Sergeant (500 - 2000 Reputation Level)mateoc15 User rank is Sergeant (500 - 2000 Reputation Level)mateoc15 User rank is Sergeant (500 - 2000 Reputation Level) 
Time spent in forums: 2 Days 9 h 22 m 29 sec
Reputation Power: 12
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

Reply With Quote
Reply

Viewing: Dev Shed ForumsDatabasesMS SQL Development > Too many "LIKE ... OR...OR...OR...OR..." in a SQL Statement?


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 2 hosted by Hostway
Stay green...Green IT