Draymonders/Code-Life

基础 sql

Closed this issue · 1 comments

关于主键设置

单主键情况下

create table actor (
    actor_id smallint(5) not null primary key
);

多主键情况

create table actor (
    actor_id smallint(5) not null,
    primary key (actor_id)
);