IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_IM_MDC_PRBLENTRY' AND KSQL_COL_NAME ='FECOSTCENTERID') 
 ALTER TABLE T_IM_MDC_PRBLENTRY ADD (FECOSTCENTERID BIGINT DEFAULT 0 NOT NULL );
 IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_IM_MDC_OMCPBILLENTRY' AND KSQL_COL_NAME ='FECOSTCENTERID') 
 ALTER TABLE T_IM_MDC_OMCPBILLENTRY ADD (FECOSTCENTERID BIGINT DEFAULT 0 NOT NULL );
 IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_IM_MDC_MQBENTRY' AND KSQL_COL_NAME ='FECOSTCENTERID') 
 ALTER TABLE T_IM_MDC_MQBENTRY ADD (FECOSTCENTERID BIGINT DEFAULT 0 NOT NULL );
 IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_IM_MDC_XMFTREQENTRY' AND KSQL_COL_NAME ='FECOSTCENTERID') 
 ALTER TABLE T_IM_MDC_XMFTREQENTRY ADD (FECOSTCENTERID BIGINT DEFAULT 0 NOT NULL );
 IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_IM_MDC_MFTREQENTRY' AND KSQL_COL_NAME ='FECOSTCENTERID') 
 ALTER TABLE T_IM_MDC_MFTREQENTRY ADD (FECOSTCENTERID BIGINT DEFAULT 0 NOT NULL );
 
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_IM_MDCOM_MQBENTRY' AND KSQL_COL_NAME ='FECOSTCENTERID') 
 ALTER TABLE T_IM_MDCOM_MQBENTRY ADD (FECOSTCENTERID BIGINT DEFAULT 0 NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_IM_MDC_OMINBILLENTRY' AND KSQL_COL_NAME ='FECOSTCENTERID') 
 ALTER TABLE T_IM_MDC_OMINBILLENTRY ADD (FECOSTCENTERID BIGINT DEFAULT 0 NOT NULL );
 
 IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_IM_MDC_OMOUTBILLENTRY' AND KSQL_COL_NAME ='FECOSTCENTERID') 
 ALTER TABLE T_IM_MDC_OMOUTBILLENTRY ADD (FECOSTCENTERID BIGINT DEFAULT 0 NOT NULL );
 
 
 
IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_IM_MDC_MRB_FNO') CREATE INDEX IDX_IM_MDC_MRB_FNO ON T_IM_MDC_MREQOUTBILL ( FBILLNO );
  
 