IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_RIM_INV_ORDINARY' AND KSQL_COL_NAME ='FPURCHASE_TICKET')
 ALTER TABLE T_RIM_INV_ORDINARY ADD (FPURCHASE_TICKET NVARCHAR(2) DEFAULT ' ' NOT NULL );