About
Pricing
Community
Teams
Start Free Trial
Log in
pda4me
asked on
5/17/2011
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 ?
PHP
MySQL Server
SQL
3
1
Last Comment
pda4me
8/22/2022 - Mon
ASKER CERTIFIED SOLUTION
alexjfisher
5/17/2011
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
5/17/2011
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
5/17/2011
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
http://www.w3schools.com/sql/sql_delete.asp
The syntax should be:
DELETE FROM table_name WHERE some_column=some_value