RE: [PHP-DB] Query problem
| From: | Peter Lovatt | Date: | Tue, 22 Jul 2003 09:31:26 +0000 |
| Subject: | RE: [PHP-DB] Query problem | ||
| References: | 1 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-29385@lists.php.net to get a copy of this message | ||
select * from ticket where Type = 'Line' and (Closeddate IS NULL OR
Closeddate ='')
or
select * from ticket where Type = 'Line' and Closeddate IS NULL
HTH
Peter
-----Original Message-----
From: Ron Allen [mailto:Ronald.Allen@bondsteel2.areur.army.mil]
Sent: 22 July 2003 10:29
To: php-db@lists.php.net
Subject: [PHP-DB] Query problem
I have done this in the past, but for some reason it isn't working now
(maybe a moron). I am trying to select all of the empty or NULL fields in a
column.
This is what I have
select * from ticket where Type = 'Line' and Closeddate = ' empty space'
and have tried the following
select * from ticket where Type = 'Line' and Closeddate = 'Null'
select * from ticket where Type = 'Line' and Closeddate = 'NULL'
any clues ????
--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php