If you want to use navicat to delete the queried data, you can directly replace the select statement of the query with the delete statement, and replace the conditions of the query statement with the conditions of the delete statement.
Recommended tutorial: navicat graphic tutorial
##DELETE statement
The DELETE statement is used to delete rows from a table.Syntax
DELETE FROM table name WHERE column name = value
FirstName | Address | City | |
---|---|---|---|
Bill | Xuanwumen 10 | Beijing | |
Fred | Zhongshan 23 | Nanjing |
Delete a row
"Fred Wilson" will be deleted:DELETE FROM Person WHERE LastName = 'Wilson'
FirstName | Address | City | |
---|---|---|---|
Bill | Xuanwumen 10 | Beijing |
You can delete all rows without deleting the table. This means that the structure, attributes and indexes of the table are complete:
DELETE FROM table_name
DELETE * FROM table_name
The above is the detailed content of How to delete query data in Navicat database. For more information, please follow other related articles on the PHP Chinese website!