1->insert into 表名 select select
例; 將b表的數據插入到a表之中 注意:a表字段須要和b表字段一致數據
insert into a 字符
select * from b
將b表的某一列插入到a表之中(例如是,將b表op_name插入a表)
insert into a(op_name)
select op_name from b
2->字符拆分重組
例:將'201903'轉爲'2019-03'
select left(201903,4)+'-'+right(201903,2)