--I'd like to run a query like this using the "database/sql" package:
SELECT id, name FROM users WHERE id IN (1,2,3,4);How do I use variable substitution in the query command? E.g., I want to do this (which of course doesn't work):
db.Query("SELECT id, name FROM users WHERE id IN (?)", []int{1,2,3,4})
Thanks
You received this message because you are subscribed to the Google Groups "golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.