/**Begin D:\PDM_UPGRADE_1.3\PDM_UPGRADE\pdm1\RIM_table.sql **/
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_RIM_INV_AIR_ELE' AND KSQL_COL_NAME ='FTAX_RECORDED_PERIOD')
ALTER TABLE T_RIM_INV_AIR_ELE ADD (FTAX_RECORDED_PERIOD DATETIME );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_RIM_INV_ELECTRIC' AND KSQL_COL_NAME ='FTAX_RECORDED_PERIOD')
ALTER TABLE T_RIM_INV_ELECTRIC ADD (FTAX_RECORDED_PERIOD DATETIME );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_RIM_INV_MOTOR' AND KSQL_COL_NAME ='FTAX_RECORDED_PERIOD')
ALTER TABLE T_RIM_INV_MOTOR ADD (FTAX_RECORDED_PERIOD DATETIME );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_RIM_INV_TRAIN_ELE' AND KSQL_COL_NAME ='FTAX_RECORDED_PERIOD')
ALTER TABLE T_RIM_INV_TRAIN_ELE ADD (FTAX_RECORDED_PERIOD DATETIME );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_RIM_INV_ORDINARY' AND KSQL_COL_NAME ='FTAX_RECORDED_PERIOD')
ALTER TABLE T_RIM_INV_ORDINARY ADD (FTAX_RECORDED_PERIOD DATETIME );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_RIM_INV_SPECIAL' AND KSQL_COL_NAME ='FTAX_RECORDED_PERIOD')
ALTER TABLE T_RIM_INV_SPECIAL ADD (FTAX_RECORDED_PERIOD DATETIME );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_RIM_INV_TOLL' AND KSQL_COL_NAME ='FTAX_RECORDED_PERIOD')
ALTER TABLE T_RIM_INV_TOLL ADD (FTAX_RECORDED_PERIOD DATETIME );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_RIM_INV_USEDCAR' AND KSQL_COL_NAME ='FTAX_RECORDED_PERIOD')
ALTER TABLE T_RIM_INV_USEDCAR ADD (FTAX_RECORDED_PERIOD DATETIME );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_RIM_INVOICE' AND KSQL_COL_NAME ='FTAX_RECORDED_PERIOD')
ALTER TABLE T_RIM_INVOICE ADD (FTAX_RECORDED_PERIOD DATETIME );

/**End D:\PDM_UPGRADE_1.3\PDM_UPGRADE\pdm1\RIM_table.sql **/
