DATABASE()

From Lianjapedia
Revision as of 12:15, 4 February 2013 by Yvonne.milne (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Purpose

Function to return the name of the currently open database

Syntax

DATABASE()

See Also

ADATABASES(), ALIAS(), CLOSE DATABASES, DATABASEEXISTS(), DBC(), DBF(), DBUSED(), DISPLAY SCHEMAS, DISPLAY STATUS, GETENV(), LIST SCHEMAS, LIST STATUS, OPEN DATABASE, SET FILECASE, SET SQL, TABLEEXISTS(), USE, USED()

Description

The DATABASE() function returns the name of the currently open database or a null string if none is open.

Example

open database hr
? database()
hr
close databases