MySQL DATABASE() Function
Definition and Usage
The DATABASE() function returns the name of the current database.
If there is no current database, this function returns NULL or "".
Syntax
DATABASE()
Technical Details
| Works in: | From MySQL 4.0 |
|---|
The DATABASE() function returns the name of the current database.
If there is no current database, this function returns NULL or "".
DATABASE()
| Works in: | From MySQL 4.0 |
|---|
If you want to report an error, or if you want to make a suggestion, do not hesitate to send us an e-mail:
help@w3schools.com
Your message has been sent to W3Schools.