How to use variables in where? Construction view:
The first select returns a single value (works correctly). Problem when calling a variable in the second select.
declare myVar date; begin select myField into :myVar from myTable; select * into col from secondTable where secField > &myVar and rownum < 2; end;
This design does not work. Interested in just such a design - I know workaround solutions.