0

I have an array of integers say array = [1,2,3,4,5,6,7,8,9];

The array of integers is created from an array of strings using this command

int[] array = Array.ConvertAll(arr, int.Parse);

I am trying to extract some data from the database db1

sql = $"SELECT col1, col2 from dbo.databas1 WHERE col1 in array";

I am fairly certain that my SQL code is wrong towards the end in the where clause. Can anyone tell me how implement the where clause in the SQL code?

Col1 is bigint (if it is of any help)

Morpheus
  • 3,285
  • 4
  • 27
  • 57

0 Answers0