题解 | #创建一个actor_name表#

创建一个actor_name表

http://www.nowcoder.com/practice/881385f388cf4fe98b2ed9f8897846df

知识点

  1. 首先创建新表actor_name,create table if not exists 表名()
  2. 把actor表中的列值插入actor_name表中,insert into actor_name select 列名1,列名2 from 表名

代码

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
全部评论

相关推荐

05-23 19:02
吉林大学 Java
点赞 评论 收藏
分享
评论
1
收藏
分享

创作者周榜

更多
牛客网
牛客网在线编程
牛客网题解
牛客企业服务