支持 ORARichard(没钱的日子......)

解决方案 »

  1.   

    楼上可能理解错了,我不想返回行信息,只要列标题。希望和sql server的set fmtonly on一样的效果
      

  2.   

    不理解set fmtonly on 有什么用处,感觉就是和返回空记录集一样。如select * from tb where 1=2
      

  3.   

    如果只要返回个空记录集 那就按上面的好了如果想要获得列信息 去查ORACLE的数据字典吧 这几个视图可以找到 user_tab_columns dba_tab_columns all_tab_columns
      

  4.   

    all_tab_columns 可访问的表列
    dba_tab_columns 所有表列
    user_tab_columns 当前用户所拥有的表列。
      

  5.   

    SELECT COLUMN_NAME  FROM all_tab_columns WHERE table_name='表名'
      

  6.   

    SELECT COLUMN_NAME  FROM user_tab_columns WHERE table_name=ucase(tablename)