看板 C_Sharp 關於我們 聯絡資訊
因為在資料庫中有欄位的資料型態是屬於varbinary 可是在C#這邊如果用 byte[] b = .... sqlcommand aaa= new sqlcommand ("Insert into TableA (column1) Values (" + b.toString() + ")",conn) 都會存成是system.byte() ... 請問要怎樣下語法才正確呢? 謝謝 -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 140.112.18.225
sheauren:請用parameter的方式 不要用字串串... 02/02 22:46
nenpow:成功了~ 謝謝! 02/03 02:33