📅  最后修改于: 2020-11-11 05:46:18             🧑  作者: Mango
让我们以学生为例。
原始表格:
ID | STUDENT _NAME | ADDRESS |
---|---|---|
001 | AJEET MAURYA | GHAZIABAD |
002 | RAJA KHAN | LUCKNOW |
003 | RAVI MALIK | DELHI |
如果要从student_name表中删除ID为003的学生,则SQL DELETE查询应如下所示:
DELETE FROM student_name
WHERE id = 003;
SQL DELETE查询后的结果表:
ID | STUDENT_NAME | ADDRESS |
---|---|---|
001 | AJEET MAURYA | GHAZIABAD |
002 | RAJA KHAN | LUCKNOW |