I want to query a table in mysql database for values IN
a slice:
var qids []int
//fill qids dynamically
err = database.SQL.Select("es,
"SELECT * FROM quote WHERE qid IN $1", qids)
if err != nil {
log.Println(err)
}
But I get this error:
sql: converting Exec argument #0's type: unsupported type []int, a slice
quotes []
How can I fix this?
sqlx
. – Jahncke