1, the code structure
1、创建 -- Create sequence create sequence SEQ_USERID minvalue 1 maxvalue 999999999999 start with 1 increment by 1 nocache cycle;
2、查询 select SEQ_USERID.nextval from dual; 3、删除 drop sequence SEQ_USERID;
2, all the fields in the lookup table structure
SELECT 'DDL_DTL.' ||USER_TAB_COLS.COLUMN_NAME ||',' FROM USER_TAB_COLS WHERE USER_TAB_COLS.TABLE_NAME='DIM_ERP_PUB_DDL_DTL'