IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_LIC_LICENSEDETAIL' AND KSQL_COL_NAME ='FBEGINDATE') 
 ALTER TABLE T_LIC_LICENSEDETAIL ADD (FBEGINDATE DATETIME );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_LIC_LICENSEDETAIL' AND KSQL_COL_NAME ='FENDDATE') 
 ALTER TABLE T_LIC_LICENSEDETAIL ADD (FENDDATE DATETIME );