string sql = "update SellData set isDel=1 where ID in ( @idstring )";
OleDbParameter op = new OleDbParameter("@idstring", OleDbType.VarChar, 200);
op.Value = idString;
...全文
13318打赏收藏
奇怪的删除问题
做删除时遇到这么一个情况,当我idString传入值是单个值如:1或2或3的时候可以执行成功 但是当我传入 1,2,3,4,5 这样的字符串是就不会成功 为什么呢??? string sql = "update SellData set isDel=1 where ID in ( @idstring )"; OleDbParameter op = new OleDbParameter("@idstring", OleDbType.VarChar, 200); op.Value = idStri