본문 바로가기
MySQL/생활코딩

생활코딩 - MySQL - 13. DELETE

by SKim입니다 2020. 6. 8.

검색어: MySQL delete syntax

 

https://dev.mysql.com/doc/refman/8.0/en/delete.html

 

MySQL :: MySQL 8.0 Reference Manual :: 13.2.2 DELETE Statement

MySQL 8.0 Reference Manual  /  ...  /  SQL Statements  /  Data Manipulation Statements  /  DELETE Statement DELETE is a DML statement that removes rows from a table. A DELETE statement can start with a WITH clause to define common table expressions

dev.mysql.com

WHERE 빠뜨리면 모든 행이 삭제된다.

 

DELETE FROM topic WHERE id = 2;

 

 

댓글