
--为mftbom添加计量单位
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_PDM_MFTBOM' AND KSQL_COL_NAME ='FQTYBASEUNIT') 
ALTER TABLE T_PDM_MFTBOM ADD (FQTYBASEUNIT BIGINT DEFAULT 0 NOT NULL);



