set serveroutput on;
declare
V_SQL VARCHAR2(400);
BEGIN
select sysdate INTO V_SQL from dual;
dbms_output.put_line(V_SQL);
end;
/
var V_SQL VARCHAR2(400);
exec :V_SQL := 'sysdate';
select :V_SQL from dual;
define a=sysdate
define a
select &a from dual;