Progress
SQL-92
Guide and Reference


DATABASE Function

Returns the name of the database corresponding to the current connection name. This function takes no arguments, and the trailing parentheses are optional.

SYNTAX

DATABASE [ ( ) ] 

EXAMPLE

The following example shows how to use the DATABASE function:

select database() from t2;
 
DATABASE
--------
steel              
 
1 record selected 

COMPATIBILITY

ODBC Compatible


Copyright © 2004 Progress Software Corporation
www.progress.com
Voice: (781) 280-4000
Fax: (781) 280-4095