要刪除的字符串ID為
復(fù)制代碼 代碼如下:
string SDSALES_IDString = 1,2,3,4,5,6,7
//轉(zhuǎn)成Array
Array array = SDSALES_IDString.Split(new string[] { "," }, StringSplitOptions.RemoveEmptyEntries).ToArraystring>();
在模型定義一個 public Array SDSALES_IDs {get;set;}
XML:
復(fù)制代碼 代碼如下:
delete id="DeleteManyT_LABEL_SDSALES" parameterClass="T_LABEL_SDSALES">
DELETE FROM T_LABEL_SDSALES WHERE
isNotNull property="SDSALES_IDs">
SDSALES_ID IN
iterate property="SDSALES_IDs" conjunction="," open="(" close=")">
#SDSALES_IDs[]#
/iterate>
/isNotNull>
/delete>
您可能感興趣的文章:- C#利用ODP.net連接Oracle數(shù)據(jù)庫的操作方法
- .Net連接Oracle數(shù)據(jù)庫的實(shí)現(xiàn)代碼
- .net實(shí)現(xiàn)oracle數(shù)據(jù)庫中獲取新插入數(shù)據(jù)的id的方法
- .net連接oracle的3種實(shí)現(xiàn)方法
- asp.net中調(diào)用oracle存儲過程的方法
- ADO.Net對oracle數(shù)據(jù)庫操作的實(shí)例代碼
- asp.net中oracle 存儲過程(圖文)
- 在.NetCore(C#)中使用ODP.NET Core+Dapper操作Oracle數(shù)據(jù)庫