我的表名不同,如dev1User Dev2user
我想将总表名从dev1
这会计算表格的数量:
USE databasename; SHOW TABLES; SELECT FOUND_ROWS();
答案 0 :(得分:3)
试试这个
SELECT COUNT(*)
FROM information_schema.tables
WHERE table_schema = 'mydatabasename' AND
table_name like 'dev1%'