3

Show tables lists a formatted output.

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

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

Xuphey
  • 52
  • 5

1 Answers1

7
SELECT
    GROUP_CONCAT(table_name)
FROM information_schema.tables
M Khalid Junaid
  • 62,293
  • 9
  • 87
  • 115
Alex Woolford
  • 4,203
  • 10
  • 43
  • 74