A
A
a_donov2017-09-13 20:01:44
PHP
a_donov, 2017-09-13 20:01:44

How to list MySQL tables whose name starts with base?

Tables of the form are dynamically created in the database:
base1
base2
base3
base4... You
need to get a list of these tables and the number of records in them.
If everything is clear with the query by the number of records, then how should the MySQL query for getting tables with a name starting with "base" look like.
Thanks in advance.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Alexander, 2017-09-13
@a_donov

Regular SELECT ... WHERE query from information_schema.tables

W
WestlE, 2017-09-14
@WestlE

If such crutches have already gone that you can’t put everything in one database, then choosing a cycle is the very thing.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question