May be my Q is not clear,

Problem is as shown below,

SQL = "select * from table where xyz in (:abc);"

bind_text("'ab','xy','zx','123'")

bind_text will append '' at the begining and at end making it as one string 
rather 
than ab,xy,zx.

regards
ragha


******************************************************************************************
 This email and its attachments contain confidential information from HUAWEI, 
which is intended only for the person or entity whose address is listed above. 
Any use of the information contained herein in any way (including, but not 
limited to, total or partial disclosure, reproduction, or dissemination) by 
persons other than the intended recipient(s) is prohibited. If you receive this 
e-mail in error, please notify the sender by phone or email immediately and 
delete it!
 
*****************************************************************************************

----- Original Message -----
From: Bharath Booshan L <[EMAIL PROTECTED]>
Date: Thursday, July 19, 2007 11:56 am
Subject: Re: [sqlite] Prepared Statement (select * from x where y in ());

> 
> 
> 
> > 1)How can we prepare a SQliteStatement for the following type of 
> select,>   select * from tablename where column in (?);
> >   ?: we don;t know the length of this string.
> 
> 
> Pass any value less than zero as 3rd parameter to sqlite3_prepare 
> function,in which case, characters up to the first null terminator 
> will be
> considered.
> 
> Cheers,
> 
> Bharath Booshan L.
> 
> 
> 
> -----------------------------------------------
> Robosoft Technologies - Come home to Technology
> 
> Disclaimer: This email may contain confidential material. If you 
> were not an intended recipient, please notify the sender and 
> delete all copies. Emails to and from our network may be logged 
> and monitored. This email and its attachments are scanned for 
> virus by our scanners and are believed to be safe. However, no 
> warranty is given that this email is free of malicious content or 
> virus.
> 
> 
> 
> -------------------------------------------------------------------
> ----------
> To unsubscribe, send email to [EMAIL PROTECTED]
> -------------------------------------------------------------------
> ----------
> 
> 

-----------------------------------------------------------------------------
To unsubscribe, send email to [EMAIL PROTECTED]
-----------------------------------------------------------------------------

Reply via email to