db icon indicating copy to clipboard operation
db copied to clipboard

argument not replaced when inside subquery

Open rafaelvanoni opened this issue 3 years ago • 0 comments

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

rafaelvanoni avatar Jul 30 '22 21:07 rafaelvanoni