题解 | #创建一个actor表,包含如下列信息#
创建一个actor表,包含如下列信息
https://www.nowcoder.com/practice/ac233de508ef4849b0eeb4f38dcf09cf
create table actor( actor_id smallint(5) auto_increment, first_name varchar(45) not null, last_name varchar(45) not null, last_update date not null, primary key (actor_id) );
注意代码:auto_increment 自动生成唯一值作为主键
last_insert_id() 查找最新插入的主键值