I read the book "Oracle Database Architecture Expert"
I found this code that I do not understand, I do not understand this way of writing variables. Are these global variables?
how can I do this to check the timestamp for all rows in the table, and not just the deptno 10?
ops$tkyte%ORA11GR2> variable deptno number
ops$tkyte%ORA11GR2> variable dname varchar2(14)
ops$tkyte%ORA11GR2> variable loc varchar2(13)
ops$tkyte%ORA11GR2> variable last_mod varchar2(50)
ops$tkyte%ORA11GR2>
ops$tkyte%ORA11GR2> begin
2 :deptno := 10;
3 select dname, loc, to_char( last_mod, 'DD-MON-YYYY HH.MI.SSXFF AM TZR' )
4 into :dname,:loc,:last_mod
5 from dept
6 where deptno = :deptno;
7 end;
8 /
PL/SQL procedure successfully completed.