常用的MySQL增删改查语句如下:
- 插入数据(增):
- INSERT INTO table_name (column1, column2, …) VALUES (value1, value2, …);
- 查询数据(查):
-
SELECT * FROM table_name;
-
SELECT column1, column2, … FROM table_name;
-
SELECT * FROM table_name WHERE condition;
- 更新数据(改):
- UPDATE table_name SET column1 = value1, column2 = value2, … WHERE condition;
- 删除数据(删):
- DELETE FROM table_name WHERE condition;
这些是最基本的MySQL增删改查语句,根据实际情况可以使用更复杂的语句来满足需求。