CREATE
ALTER
DROP
스키마
create schema A default character set utf8;
drop schema A;
create database B default character set utf8mb4;
drop database B;
create tablename();
not null
default
primary key
foreign key
references
unique
check
on delete/on update
기본키
a varchar(10) not null primary key,
= constraint a_b primary key a
외래키
constraint A_B foreign key (b) references B (b);
복합키
constraint a_b primary key (a,b)
'SQL' 카테고리의 다른 글
| DML (0) | 2022.10.07 |
|---|---|
| DML (0) | 2022.10.05 |
| Alter (0) | 2022.10.05 |
| auto_increment (0) | 2022.10.05 |