显示USER_OBJECTS数据字典视图EMPLOYEE和DEPARTMENT表中的对象名称和类型

时间:2014-11-17 15:44:56

标签: sqlplus where-clause

我遇到了where子句的问题......

SELECT OBJECT_NAME, OBJECT_TYPE
FROM USER_OBJECTS
WHERE TABLE_NAME IN ('EMPLOYEE', 'DEPARTMENT');

1 个答案:

答案 0 :(得分:0)

想出来 -

SELECT constraint_name, constraint_type
FROM user_constraints 
WHERE table_name IN ('EMPLOYEE', 'DEPARTMENT');