sql语法

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)

相关文章
相关标签/搜索