DB: Oracle 9.2.0.6
Listed below is the sql statement in question. When running this sql statement in SQLPLUS on *nux the output, as expected, is displayed on three lines. However, when running this sql statement in the ps/sql developer command window only the first line is displayed. I've also tried using chr(10)||chr(13) but to no avail.
The sql statement could be seperated out to three diffeent statements but I want to keep this as a single sql statement.
What's missing to make this work?
select rpad('Host Server',17,' ')||': ' ||upper(sys_context('USERENV','HOST'))||chr(10)||
rpad('Database Name',17,' ')||': ' ||upper(sys_context('USERENV','DB_NAME'))||chr(10)||
rpad('Script Begin time',17,' ')||': ' ||to_char(systimestamp,'dd-MON-yyyy HH24:mi:ss.ff2')
from dual;
Listed below is the sql statement in question. When running this sql statement in SQLPLUS on *nux the output, as expected, is displayed on three lines. However, when running this sql statement in the ps/sql developer command window only the first line is displayed. I've also tried using chr(10)||chr(13) but to no avail.
The sql statement could be seperated out to three diffeent statements but I want to keep this as a single sql statement.
What's missing to make this work?
select rpad('Host Server',17,' ')||': ' ||upper(sys_context('USERENV','HOST'))||chr(10)||
rpad('Database Name',17,' ')||': ' ||upper(sys_context('USERENV','DB_NAME'))||chr(10)||
rpad('Script Begin time',17,' ')||': ' ||to_char(systimestamp,'dd-MON-yyyy HH24:mi:ss.ff2')
from dual;