题解 | #创建一个actor_name表#
创建一个actor_name表
https://www.nowcoder.com/practice/881385f388cf4fe98b2ed9f8897846df
1.先创建表以及相应字段:
create table actor_name (
first_name varchar(45) not null,
last_name varchar(45) not null
);
2.从actor表中插入数据:
insert into actor_name(
select first_name, last_name
from actor
);
还有直接在actor_name表中插入题目需要的数据(混通关):
insert into actor_name(first_name, last_name)
values('PENELOPE', 'GUINESS'),
('NICK','WAHLBERG');
create table 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 ); # insert into actor_name(first_name, last_name) # values('PENELOPE', 'GUINESS'), # ('NICK','WAHLBERG');