Monday 16 November 2020

SQL: Get current database name

 

'database()' return the current database name in use.

mysql> SELECT database();
+------------+
| database() |
+------------+
| demo       |
+------------+
1 row in set (0.00 sec)

 

 

Previous                                                    Next                                                    Home

No comments:

Post a Comment