跨库的操作 同一台服务器,我想跨数据库操作,例如update a库 表名=b库,表名,语法应该怎么写 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 update a set a.filename=b.filename from 表1 a,[数据库2].dbo.表2 b where a.id=b.id 和同一数据库中两张表关联的update是一样的,只不过表名这样写,[数据库名].dbo.[表名] 下面以databasea库的table1表,databaseb库的table2表为例,修改a库的table1的值:use databaseagoupdate table1 set 字段=b.字段 from table1 a, databaseb.dbo.table2 b where ... use a--库goupdate Tset col=b.clofrom b.dbo.T as b wheret.ID=b.ID---更新a库的t表,b库的t表col列替换a库的t表col 汇总的语句,遇到问题了 根据时间统计的问题 SQL Server 2005 BI 工具集提供了端到端的 BI 应用程序集成 还是全文索引的问题,怎么时时保证population到全文目录? 请问怎样管理放在异地服务器上的 SQL Server ?(急!在线等) 分布式问题 sql语句如何写 如何实现这种统计 初级问题!!请指教!!!!! 请教高手(关于sql语句) 请问SQLSERVER中如何批量插入数据呢? 如何配置数据库服务器,使得从客户端可以用ip地址连接服务器?
下面以databasea库的table1表,databaseb库的table2表为例,修改a库的table1的值:use databasea
go
update table1 set 字段=b.字段 from table1 a, databaseb.dbo.table2 b where ...
use a--库go
update T
set col=b.clo
from b.dbo.T as b
where
t.ID=b.ID
---
更新a库的t表,b库的t表col列替换a库的t表col