日期:2014-05-18 浏览次数:20803 次
select F_Name from t_dict where charindex(','+F_name+',', ',F_Status,F_BillID,F_Date,F_SupplierID,F_StockTime,F_AccountDate,F_SupplierName,F_Storage,')>0
------解决方案--------------------
你的F_Status,F_BillID,F_Date,F_SupplierID,F_StockTime,F_AccountDate等等是字段名字吗?
如果是且都是varchar类型的那可以
select F_Name from t_dict where charindex(','+F_name+',',',' + F_Status + ',' + F_BillID + ',' +F_Date + ',' +F_SupplierID + ',' +F_StockTime + ',' +F_AccountDate + ',' + F_SupplierName + ',' + F_Storage + ',')>0