--添加字段名字段
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_FMM_BOMSYNCFIELDENTRY' AND KSQL_COL_NAME ='FBOMFIELD')
ALTER TABLE T_FMM_BOMSYNCFIELDENTRY ADD (FBOMFIELD NVARCHAR(80)   DEFAULT  ' '  NOT NULL);

IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_FMM_BOMSYNCFIELDENTRY' AND KSQL_COL_NAME ='FBOMFIELDNAME')
ALTER TABLE T_FMM_BOMSYNCFIELDENTRY ADD (FBOMFIELDNAME NVARCHAR(80)   DEFAULT  ' '  NOT NULL);