C# Parameterized Query MySQL with `in` clause

前端 未结 7 1791
感情败类
感情败类 2020-12-03 15:36

I am in the process of converting several queries which were hard-coded into the application and built on the fly to parameterized queries. I\'m having trouble with one part

7条回答
  •  伪装坚强ぢ
    2020-12-03 16:33

    Loop round your list of integers and perform individual updates.

    MSSQL 2008 offers table-valued parameters to avoid this issue, I'm not aware of any similar functionality in MySQL.

提交回复
热议问题