IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_FPM_REPORTDATAMAIN' AND KSQL_COL_NAME IN ('FORGPLANAMT'))
 ALTER TABLE T_FPM_REPORTDATAMAIN ADD (FORGPLANAMT DECIMAL(23,10) DEFAULT 0 NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_FPM_REPORT' AND KSQL_COL_NAME IN ('FCHANGESTATUS')) 
 ALTER TABLE T_FPM_REPORT ADD (FCHANGESTATUS NVARCHAR(50) DEFAULT 'unchange' NOT NULL );

