一、SELECT
1.结构
SELECT
FOEM
WHERE
3.SELECT DISTINCT
mysql> SELECT DISTINCT `teacher_id`
-> FROM `courses`;
+------------+
| teacher_id |
+------------+
| 4 |
| 3 |
| 1 |
+------------+
3 rows in set (0.01 sec)
通过结果我们可以了解到,编号 4、编号 3 和编号 1 的三位教师会在本学期给学生上课。
二、INSERT
1.结构
INSERT INTO
VALUES
三、UPDATE
1.结构
UPDATE `table_name`
SET `column1`=value1,`column2`=value2,...
WHERE `some_column`=some_value;
四、DELETE、DROP TABLE
1.结构
DELETE FROM
WHERE
标签:+------------+,改查,编号,增删,WHERE,id,SELECT
From: https://www.cnblogs.com/3456939606zwp/p/17810627.html