大虾求助!!!小妹拜谢!!1 insert into 表(col1,col2,...,单位)select col1,col2,... from 表 where 单位='所选的单位' 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 update yourtable set 单位2=单位1 不会意思错了:insert into 表(col1,col2,...,单位)select col1,col2,...,'所选的单位' from 表 where 单位='所选的单位' insert into 表(col1,col2,...,单位)select col1,col2,...,'新单位' from 表 where 单位='原始单位' update 表 set 单位1字段=单位2字段,........ from 表 aa ,(select * from 表 where 单位='单位2') bb where aa.单位='单位1' and (单位1和单位的关联条件) 同表内字段复制:update table set company2=company1不同表内容复制(两表须结构相同):insert into tablenewselect * from table SQL高级模糊查询语句 高手请帮忙 Sql 时间问题 急急急急急 用SQL语句怎么提出查询结果的前两个字段! 数据库一直在同步,突然不能创建合并发布了,提示您不能在此数据库中创建合并发布,因为它包含一个或多个匿名合并订阅或本地合并订阅。 求sql语句理解 单表数据对比问题 个人认为有点难的问题。时间问题 请大家讨论这个错误是怎么发生的呢? sql语句错误 急急急!!! 多台机子连接SQL Server出现得问题 求助一个sql的包 晕了好几天的问题,大家帮看看
insert into 表(col1,col2,...,单位)
select col1,col2,...,'所选的单位' from 表 where 单位='所选的单位'
select col1,col2,...,'新单位' from 表 where 单位='原始单位'
from 表 aa
,(select * from 表 where 单位='单位2') bb
where aa.单位='单位1' and (单位1和单位的关联条件)
update table set company2=company1
不同表内容复制(两表须结构相同):
insert into tablenew
select * from table