How to use SQL IN statement in fsharp.data.sqlclient?
问题 I have the following sample code. The objective is to run SQL statement with multiple input parameters. [<Literal>] let connectionString = @"Data Source=Localhost;Initial Catalog=Instrument;Integrated Security=True" [<Literal>] let query = "SELECT MacroName, MacroCode FROM Instrument WHERE MacroCode IN (@codeName)" type MacroQuery = SqlCommandProvider<query, connectionString> let cmd = new MacroQuery() let res = cmd.AsyncExecute(codeName= [|"CPI";"GDP"|]) |> Async.RunSynchronously However,