Avatar of pda4me
pda4me
 asked on

Delete all records from MySQL

I have a table called 'table' that has two columns:  colA and colB

How do I issue a query to delete all records where colA = 0 and colB = 1 ?
PHPMySQL ServerSQL

Avatar of undefined
Last Comment
pda4me

8/22/2022 - Mon
ASKER CERTIFIED SOLUTION
alexjfisher

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
Brad Brett

You need to learn about SQL DELETE statement:
http://www.w3schools.com/sql/sql_delete.asp

The syntax should be:
DELETE FROM table_name WHERE some_column=some_value
pda4me

ASKER
thanks!
This is the best money I have ever spent. I cannot not tell you how many times these folks have saved my bacon. I learn so much from the contributors.
rwheeler23