
--增加产出比例

IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_BD_COSTBOM' AND KSQL_COL_NAME ='FHEADOUTPUTPERCENT')
ALTER TABLE T_BD_COSTBOM ADD (FHEADOUTPUTPERCENT BIGINT DEFAULT 0 NOT NULL );

IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_BD_VICEBOMENTRY' AND KSQL_COL_NAME ='FOUTPUTPERCENT')
ALTER TABLE T_BD_VICEBOMENTRY ADD (FOUTPUTPERCENT BIGINT DEFAULT 0 NOT NULL );
