

SQL练习题36(中等):
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;
考点
--1、insert插入单条数据
insert into 表名(字段1,字段2,...) value(值1,值2,...);
--2、insert插入多条数据
insert into 表名(字段1,字段2,...) values(值1,值2,...),(值1,值2,...);
--3、使用select插入数据,字段要对称
insert into 表名(字段) select 字段 from ...
这是一道关于SQL操作的练习题,涉及如何使用INSERT INTO语句将数据从一个表(actor)复制到另一个新表(actor_name)。题目重点在于理解和应用单条及批量数据插入,以及使用SELECT子句从现有表中选取数据进行插入。
475

被折叠的 条评论
为什么被折叠?



