Wednesday, October 2, 2019

PL/SQL - onenote lbm


Sample Create table example

CREATE TABLE ODS2.SALE_TYPE_MAST
(
  SALE_TYPE_KEY NUMBER DEFAULT "ODS2"."SEQ_SALE_TYPE_KEY".nextval NOT NULL
, SALE_TYPE_CODE VARCHAR2(20 BYTE) NOT NULL
, SALE_TYPE_NAME VARCHAR2(50 BYTE) NOT NULL
, SRC_DELETED VARCHAR2(1 BYTE) NOT NULL
, ODS_CREATE_DATE DATE
, ODS_CHANGE_DATE DATE
, EFFECTIVE_FROM_DT DATE
, EFFECTIVE_TO_DT DATE
, DELETE_FLG VARCHAR2(1 BYTE)
, CURRENT_FLG VARCHAR2(1 BYTE)
, INTEGRATON_ID VARCHAR2(4000 BYTE)
, ETL_PROCESS_KEY NUMBER
, TENANT_ID VARCHAR2(80 BYTE)
)

No comments:

Post a Comment