List databases : Current Database « Database « SQL / MySQL






List databases

 
/*
mysql> create database info;

mysql> Show databases;
+----------+
| Database |
+----------+
| info     |
| java2s   |
| mysql    |
| t        |
| test     |
| ttt      |
+----------+
6 rows in set (0.00 sec)

mysql> use info;
Database changed

*/  
  
create database info;

Show databases;

use info;




           
         
  








Related examples in the same category

1.Show databases in mysql
2.Determining the Current Database