i'm trying to store some data in Dbeaver binding variables like these:
--test
@set test = good
--testQ
@set testQ = select date from table where id = 1;
I need to store the query result, NOT the query statment, someone knows if this is posible?
i'm trying to store some data in Dbeaver binding variables like these:
--test
@set test = good
--testQ
@set testQ = select date from table where id = 1;
I need to store the query result, NOT the query statment, someone knows if this is posible?
try this:
@set testQ = (select date from table where id = 1)
select * from anotherTable where date = :testQ;
It is important not use ; in variable declaration, because will duplicate the command finalization