常用的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增刪改查語句,根據實際情況可以使用更復雜的語句來滿足需求。