-- 优先级定义加字段。
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_MSPLAN_PDEFINEENTRY' AND KSQL_COL_NAME ='FPRIORITYLEVEL') 
ALTER TABLE T_MSPLAN_PDEFINEENTRY ADD (FPRIORITYLEVEL INT DEFAULT 0 NOT NULL);