If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > MySQL > Prepared Statement with IN() Clause

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 02-21-10, 11:03
ozzii ozzii is offline
Registered User
 
Join Date: Mar 2007
Posts: 194
Prepared Statement with IN() Clause

Hi,

Is there a way to populate the IN() part of a where clause when using prepared statements? I tried using IN(?), but then I can only bind a single value.

So if I have a string with values (1,2,4,8), using an IN clause in a prepared statement will only bind the first value in the string.
Reply With Quote
Reply

Thread Tools
Display Modes

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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On