I'm new to Firebird DML.
In TransactSQL I can declare and use variables freely and simply, as in
declare @myID int
select @myID = 42
and use these variables in SELECT statements
select * from mytable where id = @myID
and to pass values between different statements.
My question is, simply, how can I declare and use local variables in a client-side Firebird DML script?
Using, say, FlameRobin, I can execute a series of DML statements in one go, e.g.
update mytable set price = 2 * price;
select * from mytable;
but I'm completely stumped on how to declare and use local variables to pass values amongst them.
Googling around, I've come across the EXECUTE BLOCK construct for Firebird's PSql, which evidently supports DECLARE VARIABLE, but it looks cumbersome, seems to contain some bizarre restrictions I've never encountered in TransactSQL and doesn't seem to be intended for the kind of client-side DML scripting I'm trying to do.