May 2005
Intermediate to advanced
352 pages
14h 39m
English
DATABASE( )
DATABASE( )
This function returns the name of the database currently in use for the session. There are no arguments. If no database has been set to default yet, it returns NULL; prior to Version 4.1.1 of MySQL, it returns an empty string.
SELECT DATABASE( ); +------------+ | DATABASE( ) | +------------+ | bookstore | +------------+
Read now
Unlock full access