IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_ER_CHECKINGPAY' AND KSQL_COL_NAME ='FANNEXNUM') 
 ALTER TABLE T_ER_CHECKINGPAY ADD (FANNEXNUM INT DEFAULT 0 NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_ER_CHECKINGPAY' AND KSQL_COL_NAME ='FAPPLYEXPLAIN') 
 ALTER TABLE T_ER_CHECKINGPAY ADD (FAPPLYEXPLAIN NVARCHAR(600) DEFAULT ' ' NOT NULL );