在PLSQL 中 输入: select * from 表@DBLINK 就可以访问SQL2000的数据, 如果加过滤条件,怎么写,在线等高手解决?

解决方案 »

  1.   

    对啊,我创建了访问MSSQL2000的DBLINK, 直接 select * from 表@DBLINK是可以查询到数据, 要是加上过滤条件即 where ,怎么加?
      

  2.   

    跟本地的表一样.where 字段=值 
      

  3.   

    SQL> select count(*) from tds.info_org@nsj820 t where t.orguri is null;
     
      COUNT(*)
    ----------
             0
     
    SQL> 
      

  4.   

    比如这样: select * from 表@DBLINK where fyear='2010' 
     提示 ORA-00904 "FYEAR" 标识符无效
      

  5.   

    先select * from 表@DBLINK
    确认表含 fyear字段.
      

  6.   

    可以明确的说,包含了 fyear字段
      

  7.   

    select * from 表@DBLINK t where t.fyear='2010'试试看  
      

  8.   

    不是吧,有这种事?手头没sql server没法测试.