根据条件用一个表update另外一个表
update table1 set id=t2.id from table1 t1,table t2 where t1.name=t2.name
根据已有内容创建一个新表
select id,name into newtable from oldtable where .............
博客介绍了SQL相关操作,包括根据条件用一个表更新另一个表,给出了update语句示例;还提及根据已有内容创建新表,并给出了select into语句示例。
根据条件用一个表update另外一个表
update table1 set id=t2.id from table1 t1,table t2 where t1.name=t2.name
根据已有内容创建一个新表
select id,name into newtable from oldtable where .............
1210

被折叠的 条评论
为什么被折叠?