

-- 存货类别
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_BD_MATERIALCATEGORY' AND KSQL_COL_NAME IN ('FLONGNUMBER'))
 ALTER TABLE T_BD_MATERIALCATEGORY ADD (FLONGNUMBER NVARCHAR(50) DEFAULT ' ' NOT NULL );