cmd.CommandText = String.Format("select sum(INV_QUANTITY) as sl from DMS_INVENTORY_TEMP " + _
" where ('{0}'=org_num||customer_num) and INV_date='{1}' ", search, rqsj)
// search=org_num+customer_num
转载于:https://www.cnblogs.com/yongwnet/archive/2007/04/12/710398.html