跨oracle服务器操作数据库

Select *
FROM OPENROWSET('MSDAORA','hics';'equip';'equip',
   'Select * FROM IT_ASSETS where assets_id=6792 ' )

//ORACLE版本

Select a.*
FROM OPENROWSET('SQLOLEDB’,'ServerName';'LoginUser';'Password',
   'Select * FROM [DatabaseName].dbo.TableName orDER BY ColName1, ColName12') AS a

//sqlserver版本

你可能感兴趣的:(oracle)