首页 > Linux操作系统 > Linux操作系统 > 几个有用的SQL语句
select * into b from a where 1<>1 (只复制结构)复制表
insert into b select * from a 拷贝表
update t2 set t1.name=(select t1.name from t1 where t2.id=t1.id)
where t2.id in (select t1.id from t1) 更新相同记录的的name 值
来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/21456417/viewspace-673959/ ,如需转载,请注明出处,否则将追究法律责任。