-- 优先级定义加字段。
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_MRP_ALGOREGISTER' AND KSQL_COL_NAME ='FAPPID')
ALTER TABLE T_MRP_ALGOREGISTER ADD (FAPPID NVARCHAR(36) DEFAULT ' ' NOT NULL);
