반응형
DELETE
select * from cats;

데이터 삭제하는 방법
delete from cats
where name = 'Egg';

고양이의 나이가 4살인 고양이 데이터를 삭제하세요
delete from cats
where age = 4;

데이터 전체 삭제
delete from cats;

테이블 전체삭제
drop table cats;

반응형
'TOOL > MySQL' 카테고리의 다른 글
| MySQL - Order by (데이터 정렬) (0) | 2022.05.16 |
|---|---|
| MySQL - 데이터 중복 제거 (Distinct) (0) | 2022.05.16 |
| MySQL - UPDATE (0) | 2022.05.15 |
| MySQL - Select ( slicing / concat / replace / reverse / char_length / upper / lower ) (0) | 2022.05.15 |
| MySQL - Data Insert (0) | 2022.05.14 |