IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_IFM_TRANSHANDLE_E' AND KSQL_COL_NAME IN ('FMATCHFLAG')) 
 ALTER TABLE T_IFM_TRANSHANDLE_E ADD (FMATCHFLAG CHAR(1) DEFAULT '0' NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_IFM_TRANSHANDLE_E' AND KSQL_COL_NAME IN ('FMATCHAMOUNTPAY')) 
 ALTER TABLE T_IFM_TRANSHANDLE_E ADD (FMATCHAMOUNTPAY DECIMAL(23,10) DEFAULT 0 NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_IFM_TRANSHANDLE_E' AND KSQL_COL_NAME IN ('FUNMATCHAMOUNTPAY')) 
 ALTER TABLE T_IFM_TRANSHANDLE_E ADD (FUNMATCHAMOUNTPAY DECIMAL(23,10) DEFAULT 0 NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_IFM_TRANSHANDLE_E' AND KSQL_COL_NAME IN ('FMATCHFLAGMSG')) 
 ALTER TABLE T_IFM_TRANSHANDLE_E ADD (FMATCHFLAGMSG NVARCHAR(255) DEFAULT ' ' NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_IFM_TRANSHANDLE_E' AND KSQL_COL_NAME IN ('FPREAMOUNTPAY')) 
 ALTER TABLE T_IFM_TRANSHANDLE_E ADD (FPREAMOUNTPAY DECIMAL(23,10) DEFAULT 0 NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_IFM_TRANSHANDLE_E' AND KSQL_COL_NAME IN ('FISPREFLAG')) 
 ALTER TABLE T_IFM_TRANSHANDLE_E ADD (FISPREFLAG CHAR(1) DEFAULT '0' NOT NULL );