-- 库存查询配置添加第二优先级供应字段
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_IM_INVQUERYCONF' AND KSQL_COL_NAME ='FPROQTY2NDFIELD')
ALTER TABLE T_IM_INVQUERYCONF ADD (FPROQTY2NDFIELD NVARCHAR(50) DEFAULT ' ' NOT NULL);