RE: [sqlite] Number of elements in IN clause

2008-01-28 Thread Samuel R. Neff
: Re: [sqlite] Number of elements in IN clause "Samuel R. Neff" <[EMAIL PROTECTED]> wrote: > I don't think it is standard SQL. At the very least, it doesn't work in > MSSQL. Standard is > > SELECT * FROM maintable WHERE key IN (select x from stuff); > >

RE: [sqlite] Number of elements in IN clause

2008-01-28 Thread Fowler, Jeff
s notation, but it does make sense. It would be nice if it matched on field name, that way the same syntax could be used in both cases. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Monday, January 28, 2008 9:20 AM To: sqlite-users@sqlite.org Subject: Re: [sqli

Re: [sqlite] Number of elements in IN clause

2008-01-28 Thread drh
"Samuel R. Neff" <[EMAIL PROTECTED]> wrote: > I don't think it is standard SQL. At the very least, it doesn't work in > MSSQL. Standard is > > SELECT * FROM maintable WHERE key IN (select x from stuff); > > SQLite shortened version is much nicer.. wish it was standard. > SQLite also

RE: [sqlite] Number of elements in IN clause

2008-01-28 Thread Fowler, Jeff
ect: Re: [sqlite] Number of elements in IN clause Felix Radensky <[EMAIL PROTECTED]> wrote: > Hi, > > Is there any limitation on the number of elements in IN clause ? > Can one have, e.g. thousands of elements ? Also, can having to many > elements become inefficient at some

RE: [sqlite] Number of elements in IN clause

2008-01-28 Thread Samuel R. Neff
Subject: RE: [sqlite] Number of elements in IN clause >SELECT * FROM maintable WHERE key IN stuff; Thanks for that tip. Didn't know you could do that. Can't remember this as standard SQL. RBS - To unsubscribe, s

RE: [sqlite] Number of elements in IN clause

2008-01-28 Thread RB Smissaert
Re: [sqlite] Number of elements in IN clause Felix Radensky <[EMAIL PROTECTED]> wrote: > Hi, > > Is there any limitation on the number of elements in IN clause ? > Can one have, e.g. thousands of elements ? Also, can having > to many elements become inefficient at some point a

Re: [sqlite] Number of elements in IN clause

2008-01-28 Thread drh
Felix Radensky <[EMAIL PROTECTED]> wrote: > Hi, > > Is there any limitation on the number of elements in IN clause ? > Can one have, e.g. thousands of elements ? Also, can having > to many elements become inefficient at some point and one > has to use some other technique, i.e. comparing