How can I pass the number of parameters, which can vary each time in the sql query? I need to issue the following query for all sorts of parameters: SELELT * FROM table WHERE name IN (value1, value2, value3, value4)
Those. not necessarily only 4 values, there may be 10, and one, and each time their number will vary. I can build a string, as an option, with the necessary values, but how then to transfer it to a parameterized query? In the code itself, I apply all requests to the datagridview element via the tableAdapter: this.запрос_продуктовTableAdapter.Fill(...);
ps I am writing in VS 15 on C #, the database has been connected through the datagridview element, the database itself is a local .mdb file, and I write requests through the query setup wizard.