Look up the database according to the table name, look up the table according to the field name

Check the library according to the table name

SELECT table_schema FROM information_schema.TABLES WHERE table_name = '表名';

 

Lookup table based on field name

select table_schema,table_name from information_schema.columns where column_name = '字段名'

Published 13 original articles · Likes0 · Visits 1944

Guess you like

Origin blog.csdn.net/Beautifulcoco/article/details/103382829