Re: subquery fails when a NOT IN operator tests a subset with NULL valu

2005-03-16 Thread Giuseppe Maxia
Peter Brawley wrote: Giuseppe, >mysql> select 2 not in (1,null,3); >+-+ >| 2 not in (1,null,3) | >+-+ >|NULL | >+-+ >1 row in set (0.00 sec) ># NOT OK Isn't that standard SQL behaviour? Yes, it is. As I said before

Re: subquery fails when a NOT IN operator tests a subset with NULL valu

2005-03-16 Thread Peter Brawley
Giuseppe, >mysql> select 2 not in (1,null,3); >+-+ >| 2 not in (1,null,3) | >+-+ >|NULL | >+-+ >1 row in set (0.00 sec) ># NOT OK Isn't that standard SQL behaviour? NULL is not a value. NOT IN compares the values using '='

Re: subquery fails when a NOT IN operator tests a subset with NULL valu

2005-03-16 Thread Harald Fuchs
In article <[EMAIL PROTECTED]>, Giuseppe Maxia <[EMAIL PROTECTED]> writes: > The whole point is actually in subqueries, not when using IN or NOT IN in a > normal query. > The bug occurs when a NOT IN is used in a subquery as a LEFT JOIN replacement. > SELECT something from t1 where column1 NOT I

Re: subquery fails when a NOT IN operator tests a subset with NULL valu

2005-03-16 Thread Giuseppe Maxia
Dan Nelson wrote: In the last episode (Mar 16), Giuseppe Maxia said: Here is a description of what looks like a serious bug. This is related to bugs #7294 and #6247 Tested against mysql 4.1.9 and 4.1.10. Description: operator NOT IN fails when a subquery returns one or more NULL values. How-To

Re: subquery fails when a NOT IN operator tests a subset with NULL valu

2005-03-16 Thread Dan Nelson
In the last episode (Mar 16), Giuseppe Maxia said: > Here is a description of what looks like a serious bug. This is > related to bugs #7294 and #6247 > > Tested against mysql 4.1.9 and 4.1.10. > > >Description: > operator NOT IN fails when a subquery returns one or more NULL > value

subquery fails when a NOT IN operator tests a subset with NULL valu

2005-03-15 Thread Giuseppe Maxia
Hi. Here is a description of what looks like a serious bug. This is related to bugs #7294 and #6247 Tested against mysql 4.1.9 and 4.1.10. Cheers Giuseppe Maxia >Description: operator NOT IN fails when a subquery returns one or more NULL values. >How-To-Repeat: simple proof of conce

RE: IN operator

2004-09-13 Thread Monet
dd and > might explain some weird experiences. > > > DVP > > Dathan Vance Pattishall > http://www.friendster.com > > > > -Original Message- > > From: Monet [mailto:[EMAIL PROTECTED] > > Sent: Monday, September 13, 2004 10:22 AM > &g

RE: IN operator

2004-09-13 Thread Dathan Vance Pattishall
Monet [mailto:[EMAIL PROTECTED] > Sent: Monday, September 13, 2004 10:22 AM > To: [EMAIL PROTECTED] > Cc: [EMAIL PROTECTED] > Subject: Re: IN operator > > Hi there, > I used very likely statement last week to update one > table. My IN value is around 20. I checked the manual &

Re: IN operator

2004-09-13 Thread Monet
client) with the values I used in an > IN-operator for an > update onto a mySQL database. > > The statement looks like this: > UPDATE layer SET State=1 > WHERE fpObjectID IN (1,3,4,5,20,34,56,24,56,11,45) > > Now, the question came up if there is a maximum of > values o

Re: IN operator

2004-09-13 Thread SGreen
h the values I used in an IN-operator for an > update onto a mySQL database. > > The statement looks like this: > UPDATE layer SET State=1 > WHERE fpObjectID IN (1,3,4,5,20,34,56,24,56,11,45) > > Now, the question came up if there is a maximum of values or length in > an IN

Re: IN operator

2004-09-13 Thread David Obwaller
* Oliver Hirschi <[EMAIL PROTECTED]> [09/13/04]: > Hi people > > Due to MySQL does not support "inner-selects", I generate a string (I > programm java-client) with the values I used in an IN-operator for an > update onto a mySQL database. > > The statemen

IN operator

2004-09-13 Thread Oliver Hirschi
Hi people Due to MySQL does not support "inner-selects", I generate a string (I programm java-client) with the values I used in an IN-operator for an update onto a mySQL database. The statement looks like this: UPDATE layer SET State=1 WHERE fpObjectID IN (1,3,4,5,20,34,56,24,56,11,45)

Re: Help with the "IN" operator

2003-09-06 Thread Paul DuBois
At 11:25 -0400 9/6/03, Roger Davis wrote: I am having a bit of trouble with the "IN" operator. I am thinking that it just may be my misunderstanding. Situation. I have a table (ZipCounty) that I want to pull vendors from based on zipcode. So I have a Vendor like field declar

Re: Help with the "IN" operator

2003-09-06 Thread mtoth
You are misunderstanding the 'IN' operator Try and think of it this way SELECT value from table where field in (1,2,3) is the same as SELECT value from table where field = 1 or field = 2 or field = 3 So in you case SELECT Count(ID) FROM ZipCounty WHERE '528' IN (VendorLink)

Help with the "IN" operator

2003-09-06 Thread Roger Davis
I am having a bit of trouble with the "IN" operator. I am thinking that it just may be my misunderstanding. Situation. I have a table (ZipCounty) that I want to pull vendors from based on zipcode. So I have a Vendor like field declared as TEXT. To keep the table up to date

Re: Question about IN operator

2003-02-15 Thread Paul DuBois
At 12:41 -0600 2/15/03, Don! Briggs wrote: I have a field (cdfeature) that contains a list of comma seperated values. Example follows: select item_id, cdfeature from cars where (101 in (cdfeature)); +-+-+ | item_id | cdfeature | +-+---

Question about IN operator

2003-02-15 Thread Don! Briggs
I have a field (cdfeature) that contains a list of comma seperated values. Example follows: select item_id, cdfeature from cars where (101 in (cdfeature)); +-+-+ | item_id | cdfeature | +-+-+ | 320 | 101,104,106 | |