sql command to list databases code example
Example 1: mysql list databases
SHOW DATABASES;
Example 2: get database list in sql server
SELECT name FROM master.dbo.sysdatabases
SHOW DATABASES;
SELECT name FROM master.dbo.sysdatabases