C# sql 語句 引數化 思路
阿新 • • 發佈:2018-12-21
--C# Oricle sql in語句 引數化 思路 --DBHelper.GetDataTable in 語句引數化 --思路1 select * from sfc_mo where inv_org_id = 204383 and mo_name in( select '8100000017' mo_name from dual union select '8100000018' mo_name from dual union select '8100000019' mo_name from dual ) --思路2 select * from sfc_mo where inv_org_id = 204383 and (mo_name = '8100000017' or mo_name = '8100000018' or mo_name = '8100000019') --like 引數化 LIKE '%' || :MO_NAME || '%' --sql server like 方法 https://blog.csdn.net/duhongsheng/article/details/77250175 --sql server in 方法 https://blog.csdn.net/c3poo/article/details/39927603