Today We are going to study DDL. It include CREATE, ALTER, DROP, RENAME and TRUNCATE.
So Let's get it.
Create table, We maed a table called test3.



Drop table, It's easy just type it.



alter table tablename add tel int;


alter table name drop tel;


alter table tablename modify tel int; , this is mean that modify column attribute.


alter table tablename change tel pongpong varchar(45); As you know We can see from tel to pongpong.


To be continue
'DB > MySQL' 카테고리의 다른 글
[MySQL] Data Manipulation Language (DML) (0) | 2022.02.09 |
---|---|
[MySQL] MySQL을 github으로 Commit하는 방법 (0) | 2022.02.08 |
[MySQL] Insert into "table" values (0) | 2022.02.04 |
[MySQL] Create table and set the environment (0) | 2022.01.31 |
[MySQL] Download and Make a MySQL environment (0) | 2022.01.25 |