1、单条数据的插入
2、批量插入
3、表克隆
DML--单条数据插入 into可以省略1)insert into productType (typename) values("工具类")2)--标识列自增长insert productType(typename)select '鞋类'--多条插入 union去重 union all 不去重(速度快)1)insert into productType(typename)values('工具类1'),('工具类2'),('工具类3')2)insert into productType(typename)select 'aaa' unionselect 'bbb' unionselect 'ccc' union allselect 'ccc'--克隆表数据1)目标表在数据库已经存在insert into Test(name) --目标表select typename from productType2)目标表之前在数据库中不存在,执行操作时自动创建select typename into Test --目标表from productType
