Returns the name of a database with a given ID number.
DB_NAME( [ database-id ] )
database-id The ID of the database. The database-id must be a numeric expression.
VARCHAR
If no database ID is supplied, the name of the current database is returned.
SQL/2003 Vendor extension.
The statement returns the database name demo, when executed against the SQL Anywhere sample database as the sole database on the server.
SELECT DB_NAME( 0 ); |
Discuss this page in DocCommentXchange. Send feedback about this page using email. |
Copyright © 2009, iAnywhere Solutions, Inc. - SQL Anywhere 11.0.1 |