QUERY #1 (Separate Columns)
SET @db = '';
SELECT db,tb FROM
(SELECT @tb := IF(@db=table_schema,table_name,'') tb,
IF(@db=table_schema,'',table_schema) db,
(@db := table_schema) unused FROM information_schema.tables) A;
QUERY #2 (One Column)
SET @db = '';
SELECT CONCAT(db,' ',tb) DBTB FROM
(SELECT @tb := IF(@db=table_schema,table_name,'') tb,
IF(@db=table_schema,'',table_schema) db,
(@db := table_schema) unused FROM information_schema.tables) A;
QUERY #3 (DB on First Table, Separate Columns)
SET @db = '';
SELECT db,tb FROM
(SELECT IF(@db=table_schema,'',table_schema) db,
table_schema tb,(@db := table_schema) unused FROM information_schema.tables) A;
QUERY #4 (DB on First Table, One Column)
SET @db = '';
SELECT CONCAT(RPAD(db,20,' '),tb) dbtb FROM
(SELECT IF(@db=table_schema,'',table_schema) db,
table_schema tb,(@db := table_schema) unused FROM information_schema.tables) A;