Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Why can't I delete this?

Status
Not open for further replies.

golyg

Programmer
Jul 22, 2002
319
US
Hi all, I have an INSERT statement that enters a bunch of new rows, then I would like to DELETE all rows where id = 'NULL'
I am using the following command(s):
DELETE FROM t_devices WHERE id like 'NULL';
as well as
DELETE FROM t_devices WHERE id = 'NULL';

neither are working but if I do this:
DELETE FROM t_devices WHERE id <> 'NULL', all other records are being deleted.

any suggestions?

thanks,

 
DELETE FROM t_devices WHERE id IS NULL -- Just trying to help...
[wolf]<--- This is a wolf? We need a new icon.......
mikewolf@tst-us.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top