Re: Selecting Null columns
| From: | pete M | Date: | Thu, 22 Apr 2004 12:09:46 +0000 |
| Subject: | Re: Selecting Null columns | ||
| References: | 1 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-34035@lists.php.net to get a copy of this message | ||
SELECT * FROM questions WHERE answer IS NULL
SELECT * FROM questions WHERE answer IS NOT NULL
Pambos Nicolaou wrote:
Hi everyone I am a new user of this mail list and I hope that it will be helpful. I am trying to show the content of a MySQL table(raw) where the content of a column is NOT NULL. I used the commands below but the result shows the content of the whole table for the first case and nothing in the second case.Thanks in advance Nicolaou Pambos _________________________________________________________________ Help STOP SPAM with the new MSN 8 and get 2 months FREE* http://join.msn.com/?page=features/junkmailSELECT * FROM questions WHERE answer IS NOT NULL ; SELECT * FROM questions WHERE answer <> NULL ;