查系统表Select 1 From cols 
Where table_name = tname
And column_name = cname注意表名和字段名一定要大写

解决方案 »

  1.   

    补充luckbird(luckbird) 
    cols 为 DBA_TAB_COLUMNS
      

  2.   

    select * from user_tables a,DBA_TAB_COLUMNS b
    where a.tablename=b.tablename
    and b.columns ='列名'
    and a.tablename ='表名'
      

  3.   

    select * from user_tables a,DBA_TAB_COLUMNS b
    where a.TABLE_NAME=b.TABLE_NAME
    and b.column_name ='NAME'
    and a.TABLE_NAME ='COURSES'表COURSES 列 COURSEID,NAME
    注意上面and b.column_name ='NAME' and a.TABLE_NAME ='COURSES' 条件判断中NAME,COURSES必须为大写