Posted By

geekzspot on 12/04/12


Tagged

sql


Versions (?)

Who likes this?

1 person have marked this snippet as a favorite

geekzspot


Oracle Get the Database Name in a Script


 / Published in: PL/SQL
 

Get the Database Name in a Script Bind Variable

  1. VARIABLE database_name VARCHAR2(30)
  2. SELECT GLOBAL_NAME INTO :database_name FROM GLOBAL_NAME;
  3. /
  4. SELECT :database_name FROM DUAL;

Report this snippet  

You need to login to post a comment.