3

Show tables lists a formatted output.

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

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

2

1 Answer 1

7
SELECT
    GROUP_CONCAT(table_name)
FROM information_schema.tables
Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.