Oracle PL/SQL Tutorial/SQL PLUS Session Environment/sqlprompt
Версия от 13:45, 26 мая 2010; (обсуждение)
set signature prompt in sqlplus to username@database>
SQL>
SQL> define gname=idle
SQL>
SQL> column global_name new_value gname
SQL>
SQL> select lower(user) || "@" ||
2 substr( global_name, 1, decode( dot,
3 0, length(global_name),
4 dot-1) ) global_name
5 from (select global_name, instr(global_name,".") dot
6 from global_name );
GLOBAL_NAME
-----------------------------------------------------------------------------------------------------------------------------------
sqle@XE
SQL> set sqlprompt "&gname> "
SQL>
SQL>
SQL>