DataAdapter.Update(DataTable)參數問題

看板C_Sharp作者 (user)時間5年前 (2018/12/28 22:10), 編輯推噓0(001)
留言1則, 1人參與, 5年前最新討論串1/1
DataAdapter.UpdateCommand 有寫好了 例如 update user set name =@name where id=@id; 但使用者能更改很多列,再一次更新, 請問要怎麼把每一列的資料賦值給參數 類似這樣 DataAdapter.UpdateCommand.Parameters["@name"].Value = 每一列的name欄位 ---- Sent from BePTT -- ※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 39.8.168.245 ※ 文章網址: https://www.ptt.cc/bbs/C_Sharp/M.1546006236.A.321.html

12/31 11:54, 5年前 , 1F
跑迴圈
12/31 11:54, 1F
文章代碼(AID): #1S9YxSCX (C_Sharp)