IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_ER_PLANEBILL' AND KSQL_COL_NAME ='FSERVICEFEEPAYTYPE')
 ALTER TABLE T_ER_PLANEBILL ADD (FSERVICEFEEPAYTYPE CHAR(1) DEFAULT ' ' NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_ER_PLANEBILL' AND KSQL_COL_NAME ='FPERSONALFEE')
 ALTER TABLE T_ER_PLANEBILL ADD (FPERSONALFEE DECIMAL(23,10) DEFAULT 0 NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_ER_PLANECHECKINGBILL' AND KSQL_COL_NAME ='FSERVICEFEEPAYTYPE')
 ALTER TABLE T_ER_PLANECHECKINGBILL ADD (FSERVICEFEEPAYTYPE CHAR(1) DEFAULT ' ' NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_ER_PLANECHECKINGBILL' AND KSQL_COL_NAME ='FPERSONALFEE')
 ALTER TABLE T_ER_PLANECHECKINGBILL ADD (FPERSONALFEE DECIMAL(23,10) DEFAULT 0 NOT NULL );

 

