Servlet進行批量刪除

Mapper文件
Servlet進行批量刪除

in爲點選條件 collection爲集合 點選id 以“(”開始 以“)”結束 中間以“,”隔開(注意中英文符號)
例:delete from product where pro_id in (1,2,4,5)

Dao層
Servlet進行批量刪除
Servlet
Servlet進行批量刪除
設置爲String[]集合:1.String易拆解 2.在servlet中getParameValues的返參爲String,不需要轉換類型。

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章