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 Shaun E on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

delete from database

Status
Not open for further replies.

cnw40007

Technical User
Mar 4, 2003
35
IE
Hi I have a mysql database with various email addresses.There are a number of blank rows that i want to get rid of. Ive tried delete from addsubj values ('',''); but nothing happens. Can anybody help me please. Thanks cnw40007
 

delete from yourTable
where addsubj is null
or trim(adjsub) = ''

The term blank is somewhat ambiguous. Does it mean NULL or is it an empty string or is it filled with space characters? The statement above should work for all of those.
 
OK great i tried that and it worked.Thanks again for your help.
cnw40007
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top