IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_CAS_AUTOCALRESULT' AND KSQL_COL_NAME IN ('FRULEENTRYID')) 
 ALTER TABLE T_CAS_AUTOCALRESULT ADD (FRULEENTRYID BIGINT DEFAULT 0 NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_CAS_AUTOCALRESULT' AND KSQL_COL_NAME IN ('FRULENAME')) 
 ALTER TABLE T_CAS_AUTOCALRESULT ADD (FRULENAME NVARCHAR(100) DEFAULT ' ' NOT NULL );