-- 领料差异分摊明细表头加领料差异分摊编号
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_IM_MDC_DIFSHAREDETAIL' AND KSQL_COL_NAME ='FDIFFSHARENO') 
 ALTER TABLE T_IM_MDC_DIFSHAREDETAIL ADD (FDIFFSHARENO NVARCHAR(50) DEFAULT ' ' NOT NULL);