from **表名** # 查询表中特定列
select **列** from 表名 where *search_conditions* (如:职务='经理') # 查询表中特定行
select...insert 使用select关键字:
insert into new1 (姓名,职务,出生日期) select 姓名,职务,出生日期 from test where 基本工资>=15000 #将...test表中所有基本工资大于等于15000的员工的姓名,职务,和出生日期保存到 new1表中(注意,这里的 new1表中需要提前建立)
使用union关键字:
insert into new2 (姓名,...职务,出生日期) select '张三','运维','1995-01-01' union select '李四','运维','1996-01-01' union select 姓名,职务,出生日期 from...test #将test表中所有员工的姓名、职务和出生日期,以及新输入的2名员工相关信息,一起保存到新表new2