数据库更新问题!
服务器的数据每一个小时都要更新,我想让本地数据库也在每小时保持更新.请问类似的语句怎么写,谢高手们举个实例(需要的是数据更新部分).谢谢.[size=12px][/size][size=12px][/size]
[解决办法]
insert into a.db.dbo.table select * from b.db.dbo.table where not exists (select * from a.db.dbo.table)
发布时间: 2012-03-04 11:13:33 作者: rapoo
数据库更新问题!
服务器的数据每一个小时都要更新,我想让本地数据库也在每小时保持更新.请问类似的语句怎么写,谢高手们举个实例(需要的是数据更新部分).谢谢.[size=12px][/size][size=12px][/size]
[解决办法]
insert into a.db.dbo.table select * from b.db.dbo.table where not exists (select * from a.db.dbo.table)