题目描述

对于如下表actor,其对应的数据为:
actor_idfirst_namelast_namelast_update
1 PENELOPE GUINESS 2006-02-15 12:34:33
2 NICK WAHLBERG 2006-02-15 12:34:33

请你创建一个actor_name表,并且将actor表中的所有first_name以及last_name导入该表.
actor_name表结构如下:
列表类型是否为NULL含义
first_name varchar(45) not null 名字
last_name varchar(45) not null 姓氏

 

答案详解

create table IF NOT EXISTS actor_name(
    first_name varchar(45) not null,
    last_name varchar(45) not null
);
insert into actor_name select first_name,last_name from actor;

  

题目描述

对于如下表actor,其对应的数据为:
actor_idfirst_namelast_namelast_update
1 PENELOPE GUINESS 2006-02-15 12:34:33
2 NICK WAHLBERG 2006-02-15 12:34:33

请你创建一个actor_name表,并且将actor表中的所有first_name以及last_name导入该表.
actor_name表结构如下:
列表类型是否为NULL含义
first_name varchar(45) not null 名字
last_name varchar(45) not null 姓氏
posted on 2021-03-11 14:41  童话Bluebells  阅读(138)  评论(0编辑  收藏  举报