IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_EB_DIMMATERULEBILL' AND KSQL_COL_NAME IN ('FENTRYUSEMAP')) 
ALTER TABLE T_EB_DIMMATERULEBILL ADD (FENTRYUSEMAP CHAR(1) DEFAULT '0' NOT NULL);
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_EB_DIMMATERULEBILL' AND KSQL_COL_NAME IN ('FACCOUNTUSEMAP')) 
ALTER TABLE T_EB_DIMMATERULEBILL ADD (FACCOUNTUSEMAP CHAR(1) DEFAULT '0' NOT NULL);
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_EB_DIMMATERULEBILL' AND KSQL_COL_NAME IN ('FYEARUSEMAP')) 
ALTER TABLE T_EB_DIMMATERULEBILL ADD (FYEARUSEMAP CHAR(1) DEFAULT '0' NOT NULL);
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_EB_DIMMATERULEBILL' AND KSQL_COL_NAME IN ('FPROJECTUSEMAP')) 
ALTER TABLE T_EB_DIMMATERULEBILL ADD (FPROJECTUSEMAP CHAR(1) DEFAULT '0' NOT NULL);
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_EB_DIMMATERULEBILL' AND KSQL_COL_NAME IN ('FUSERDEFINED1USEMAP')) 
ALTER TABLE T_EB_DIMMATERULEBILL ADD (FUSERDEFINED1USEMAP CHAR(1) DEFAULT '0' NOT NULL);
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_EB_DIMMATERULEBILL' AND KSQL_COL_NAME IN ('FUSERDEFINED2USEMAP')) 
ALTER TABLE T_EB_DIMMATERULEBILL ADD (FUSERDEFINED2USEMAP CHAR(1) DEFAULT '0' NOT NULL);
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_EB_DIMMATERULEBILL' AND KSQL_COL_NAME IN ('FUSERDEFINED3USEMAP')) 
ALTER TABLE T_EB_DIMMATERULEBILL ADD (FUSERDEFINED3USEMAP CHAR(1) DEFAULT '0' NOT NULL);
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_EB_DIMMATERULEBILL' AND KSQL_COL_NAME IN ('FUSERDEFINED4USEMAP')) 
ALTER TABLE T_EB_DIMMATERULEBILL ADD (FUSERDEFINED4USEMAP CHAR(1) DEFAULT '0' NOT NULL);
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_EB_DIMMATERULEBILL' AND KSQL_COL_NAME IN ('FUSERDEFINED5USEMAP')) 
ALTER TABLE T_EB_DIMMATERULEBILL ADD (FUSERDEFINED5USEMAP CHAR(1) DEFAULT '0' NOT NULL);
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_EB_DIMMATERULEBILL' AND KSQL_COL_NAME IN ('FUSERDEFINED6USEMAP')) 
ALTER TABLE T_EB_DIMMATERULEBILL ADD (FUSERDEFINED6USEMAP CHAR(1) DEFAULT '0' NOT NULL);
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_EB_DIMMATERULEBILL' AND KSQL_COL_NAME IN ('FCURRENCYUSEMAP')) 
ALTER TABLE T_EB_DIMMATERULEBILL ADD (FCURRENCYUSEMAP CHAR(1) DEFAULT '0' NOT NULL);

