db
db copied to clipboard
argument not replaced when inside subquery
I have a query in this form
SELECT ...
FROM ...
JOIN (SELECT ...
FROM ...
WHERE ... IN ? )
....
I've tried running it with Query(argSlice) or even with a prepared statement but the ? is never replaced with the contents of argSlice. I also tried bulding subqueries with chained methods with no success.
Is there a better way of doing this?
Thanks