RE: [PHP-DB] Select rows where ?

From: Date: Tue, 12 Feb 2002 19:00:28 +0000
Subject: RE: [PHP-DB] Select rows where ?
References: 1  Groups: php.db 
Request: Send a blank email to php-db+get-16868@lists.php.net to get a copy of this message
SELECT * FROM table WHERE COLUMN_NAME NOT LIKE '%unwanted_String%'; when the field type is number you can use SELECT * FROM table WHERE COLUMN_NAME != unwanted_number; or SELECT * FROM table WHERE COLUMN_NAME <> unwanted_number; Gurhan -----Original Message----- From: Dave Carrera [mailto:dave@davecarrera.com] Sent: Tuesday, February 12, 2002 1:39 PM To: php List Subject: [PHP-DB] Select rows where ? Hi All How do I select the rows that DO NOT contain a certain character. I.e. : select * from tablename where field dose not contain "A" Any pointers as always appreciated. davec Dave Carrera Website Designer http://www.davecarrera.com -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

« previous php.db (#16868) next »