查询数据表属于哪个数据库

'userpurchase' 为数据表名,更改数据表名字即可

SELECT table_schema FROM information_schema.TABLES WHERE table_name = 'userpurchase';

原文地址:https://www.cnblogs.com/zq1003/p/13863436.html