The DATABASE function returns the current server.
The result of the function is a VARCHAR(18). The result cannot be null.
The CCSID of the string is the default SBCS CCSID at the current server.
Syntax alternatives: The DATABASE function returns the same result as the CURRENT SERVER special register.
SELECT DATABASE( ) FROM SYSIBM.SYSDUMMY1Results in a value of 'RCHASGMA'.
(C) Copyright IBM Corporation 1992, 2006. All Rights Reserved.