--为t_pdm_mftbomentry添加ecnid
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_PDM_MFTBOMENTRY' AND KSQL_COL_NAME ='FENTRYECNID') 
ALTER TABLE T_PDM_MFTBOMENTRY ADD (FENTRYECNID VARCHAR(100) DEFAULT ' ' NOT NULL);