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!

Deleting a row with blank fields 1

Status
Not open for further replies.

jensies

Programmer
Aug 5, 2002
10
GB
Hi,

I have a table in which all of the fields can be null. I need to delete a row but cannot seem to get the correct way of setting it up to work.

My query is
DELETE FROM configTable
WHERE var1 = '6' AND var2 = null AND var3 = null and var4 = null

Would anyone know how to do this?

Thanks
Jenny
 
Instead of = null , use is nul

DELETE FROM configTable
WHERE var1 = '6' AND var2 is null AND var3 is null and var4 is null

RT
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top