consider a query that looks something like this:
my $query=<<QUERY;
select * from foo1 where col < ?
union all
select * from foo2 where col < ?
QUERY
Suppose that the actual request really needs alliances and cannot be effectively resolved in any other way. The variable in the where clause will always be the same. Is there a way to structure this so that I only need to pass one argument to execute instead of passing the same argument twice?
source
share