首页 > 代码库 > sql语句

sql语句

1.insert into `table` (con1,con2) select con1,con2 from `table2`;   从order2读取数据读入sign,其中position没有相应字段,统一输入position,city插入空值,

insert into `sign`(name,tel,weixin,email,position,source,ip,city,addtime) select name,tel,wechat,email,‘position‘,source,ip,‘‘,addtime from `order2`;

sql语句