Oracle Database 12c Enterprise Edition Release 12.1.0.2.0 - 64bit Production 0 PL/SQL Release 12.1.0.2.0 - Production 0 CORE 12.1.0.2.0 Production 0 TNS for Linux:版本 12.1.0.2.0 - Production 0 NLSRTL 版本12.1.0.2.0 - 生产 0
我有一个名为 tkd_gl1 的复杂视图
SQL> desc tkd_gl1
Name Null? Type
------------------------ -------- --------------
PRODUCT_FAMILY_ID NOT NULL NUMBER
APPLICATION_ID NOT NULL NUMBER
PROC_TYPE_ID NOT NULL NUMBER
REG_PACKSET_ID NOT NULL NUMBER
REGISTRATION_ID NOT NULL NUMBER
PACKSET_SPECIFICATION_ID NOT NULL NUMBER
PRODUCT_ID NOT NULL NUMBER
REG_PACK_COUNTRY_ID NOT NULL NUMBER
REG_PACKSET_COUNTRY_ID NOT NULL NUMBER
PRODUCT_DETAIL_SET_ID NOT NULL NUMBER
SUBSTANCE_ID NOT NULL NUMBER
LOCAL_APPROVED_CHANGE_ID NUMBER
Regulatory Action Type VARCHAR2(500)
Comments VARCHAR2(4000)
Reviewing Country Name NOT NULL VARCHAR2(500)
Basis Label Country NOT NULL VARCHAR2(500)
CPP Reference Country NOT NULL VARCHAR2(500)
select count(*) from tkd_gl1;
select distinct product_family_id from tkd_gl1;
select product_family_id from tkd_gl1;
select min(product_family_id),max(product_family_id) from tkd_gl1;
select product_family_id from tkd_gl1;
--所有这些都返回 ORA-01722