SQL-33 创建一个actor表,包含如下列信息

题目描述

 
创建一个actor表,包含如下列信息
列表类型是否为NULL含义
actor_id smallint(5) not null 主键id
first_name varchar(45) not null 名字
last_name varchar(45) not null 姓氏
last_update timestamp not null 最后更新时间,默认是系统的当前时间
SQL:
 
create table actor(
actor_id smallint(5) not null ,
first_name varchar(45)not null,
last_name varchar(45)not null,
last_update timestamp not null default (datetime('now','localtime')),
PRIMARY KEY(actor_id));

  系统默认的时间。

原文地址:https://www.cnblogs.com/kexiblog/p/10714794.html