3

Show tables lists a formatted output.

+----------------------------+
|           Tables           |
+----------------------------+
| table1                     |
| table2                     |
| table3                     |
+----------------------------+

How do I make the output like "table1, table2, table3, ..." ?

Xuphey
  • 50
  • 5

1 Answers1

7
SELECT
    GROUP_CONCAT(table_name)
FROM information_schema.tables
M Khalid Junaid
  • 63,861
  • 10
  • 90
  • 118
Alex Woolford
  • 4,433
  • 11
  • 47
  • 80