RE: empty set

2011-04-26 Thread Rocio Gomez Escribano
ido de Souza Neto [mailto:j...@consultorweb.cnt.br] Enviado el: martes, 26 de abril de 2011 15:02 Para: mysql@lists.mysql.com Asunto: Re: empty set As far as I know, it isn´t possible. The right way is to check how many rows your select has returned. -- João Cândido de Souza Neto "&quo

Re: empty set

2011-04-26 Thread Jo�o C�ndido de Souza Neto
'm not sure it would be possible what I want to. > > > > I have a huge query, most of them are independent, and they could have not > answer. What I want is when this happen, I want to change the "empty set" > by > "void" or "0" or so

empty set

2011-04-26 Thread Rocio Gomez Escribano
Hi! I'm not sure it would be possible what I want to. I have a huge query, most of them are independent, and they could have not answer. What I want is when this happen, I want to change the "empty set" by "void" or "0" or something like that, here it is a

Re: IS NULL returns Empty set, but I have empty items

2010-07-29 Thread Norman Khine
thank you, this makes sense. On Thu, Jul 29, 2010 at 11:29 PM, Dan Nelson wrote: > In the last episode (Jul 29), Norman Khine said: >> I don't know what I am missing, but I have this: >> >> mysql> SELECT url FROM product WHERE url IS NULL; >> Empty set (0.0

Re: IS NULL returns Empty set, but I have empty items

2010-07-29 Thread Dan Nelson
In the last episode (Jul 29), Norman Khine said: > I don't know what I am missing, but I have this: > > mysql> SELECT url FROM product WHERE url IS NULL; > Empty set (0.05 sec) > > mysql> SELECT url FROM product WHERE product_Id = 67; > +--+ > | url | &

Re: IS NULL returns Empty set, but I have empty items

2010-07-29 Thread Andy Wallace
what I am missing, but I have this: mysql> SELECT url FROM product WHERE url IS NULL; Empty set (0.05 sec) mysql> SELECT url FROM product WHERE product_Id = 67; +--+ | url | +--+ | | +--+ 1 row in set (0.00 sec) what goes with this, how can i ensure that this is NULL? he

IS NULL returns Empty set, but I have empty items

2010-07-29 Thread Norman Khine
Hello, I don't know what I am missing, but I have this: mysql> SELECT url FROM product WHERE url IS NULL; Empty set (0.05 sec) mysql> SELECT url FROM product WHERE product_Id = 67; +--+ | url | +--+ | | +--+ 1 row in set (0.00 sec) what goes with this, how can i

Re: Order by leads to an empty set.

2006-05-09 Thread Mohammed Sameer
On Tue, May 09, 2006 at 12:13:41PM -0400, Rhino wrote: > > - Original Message - > From: "Mohammed Sameer" <[EMAIL PROTECTED]> > To: > Sent: Tuesday, May 09, 2006 9:56 AM > Subject: Order by leads to an empty set. > > > >Hi all, >

Re: Order by leads to an empty set.

2006-05-09 Thread Rhino
- Original Message - From: "Mohammed Sameer" <[EMAIL PROTECTED]> To: Sent: Tuesday, May 09, 2006 9:56 AM Subject: Order by leads to an empty set. Hi all, I have a strange problem and I can't really understand what's going on! mysql> SELECT n.nid, n.

Order by leads to an empty set.

2006-05-09 Thread Mohammed Sameer
Hi all, I have a strange problem and I can't really understand what's going on! mysql> SELECT n.nid, n.sticky, n.created FROM node n WHERE n.type='image' AND (n.uid = 1 OR n.status = 1) ORDER BY n.created desc; Empty set (0.00 sec) mysql> SELECT n.nid, n.sticky, n

Re: Unexpected behaviour: SELECT with OR returns empty set

2004-07-07 Thread SGreen
| | Fax to: | | Subject: Unexpected behaviour: SELECT with OR returns empty set | >---

Re: Unexpected behaviour: SELECT with OR returns empty set

2004-07-02 Thread gerald_clark
I am not sure what you are trying to do. Do you want a join, or a union. Your query is neither, and the results are correct as written. Dave Gibson wrote: Hi, I'm getting some unexpected behaviour from a query and was hoping someone could shed some light on whether it's a user error or something el

Unexpected behaviour: SELECT with OR returns empty set

2004-07-02 Thread Dave Gibson
Hi, I'm getting some unexpected behaviour from a query and was hoping someone could shed some light on whether it's a user error or something else. I have two tables: customers, oems which both have a companyID field (marked as a foreign key). When I do: SELECT * FROM customers WHERE customers.c

embedded server - show processlist returns empty set

2003-06-07 Thread gamin
Hi Im running mysql 4.0.12-embedded, a simple query - 'show proceslist'; returns an empty set ? Is this a bug ? thx G

Re: still not-empty set

2002-06-06 Thread Gerald Clark
Maybe if (!($result)) { Try print STDERR "RESULT=$result\n"; to see what you are comparing to. Chris Hohimer wrote: > thanks for all the replies!! but it is not working. > here is the loop: > > if($result == EMPTY SET){ > $Scheduled = NULL; > } > else{ >

still not-empty set

2002-06-05 Thread Chris Hohimer
thanks for all the replies!! but it is not working. here is the loop: if($result == EMPTY SET){ $Scheduled = NULL; } else{ $Tech = mysql_result($result, 0, "tech"); $SNumber = mysql_result($result, 0, "snumber"); $Scheduled = mysql_result($r

Re: help with empty set

2002-06-05 Thread Anil Garg
- Original Message - From: "Chris Hohimer" <[EMAIL PROTECTED]> To: "Anil Garg" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Wednesday, June 05, 2002 2:26 PM Subject: Re: help with empty set > yeah that kinda works... > > what i have

Re: help with empty set

2002-06-05 Thread Chris Hohimer
yeah that kinda works... what i have is $result = mysql($database "select x, y, z from $table where a and b and c;", $link); if ($result == empty set){ $z = NULL; } else $x = mysql_result($result, 0, "x"); $y= mysql_result($result, 0, "y&quo

Re: help with empty set

2002-06-05 Thread Anil Garg
have u tried with \0 ?? - Original Message - From: "Chris Hohimer" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, June 05, 2002 1:54 PM Subject: help with empty set > using PHP what is the value for a returned result from MySQL of "empty >

help with empty set

2002-06-05 Thread Chris Hohimer
using PHP what is the value for a returned result from MySQL of "empty set" ex: if($result != NULL){ do this } else{ do that } but NULL is not right. what should I replace NULL with? - Before posti

RE: FULLTEXT with explicit ORDER BY score == empty set

2001-07-06 Thread Jay J
Sorry, I failed the obligitory full-read of the mysql manual page .. One question answered: Default sort order is descending score .. my bad. -Jay J - Before posting, please check: http://www.mysql.com/manual.php (the ma

FULLTEXT with explicit ORDER BY score == empty set

2001-07-06 Thread Jay J
this: --- SELECT id, body, MATCH (title,body) AGAINST ('Security implications of running MySQL as root') AS score FROM articles WHERE MATCH (title,body) AGAINST ('Security implications of running MySQL as root') ORDER BY score; Empty set (0.00 sec) --- Is th

Re: Empty Set Query question

2001-05-01 Thread Erica B. Tanner
fic ip address that's in the "source_ip" > > field. I can see that the record is there when I query all of the > > records, but when I query for one specific ip, I get the empty set > > result! :( > > > > Here is my query > > > > select

Re: Empty Set Query question

2001-05-01 Thread Gerald Clark
etc. I am trying to > query the table for a specific ip address that's in the "source_ip" > field. I can see that the record is there when I query all of the > records, but when I query for one specific ip, I get the empty set > result! :( > > Here is my

Empty Set Query question

2001-05-01 Thread Erica B. Tanner
ame, etc. I am trying to query the table for a specific ip address that's in the "source_ip" field. I can see that the record is there when I query all of the records, but when I query for one specific ip, I get the empty set result! :( Here is my query select * from IDReport wh