Determining the Current Database : Current Database « Database « SQL / MySQL






Determining the Current Database

      
mysql>
mysql> SELECT DATABASE( );
+-------------+
| DATABASE( ) |
+-------------+
| test        |
+-------------+
1 row in set (0.00 sec)

   
    
    
    
    
    
  








Related examples in the same category

1.Show databases in mysql
2.List databases