我使用这个mysql语句SELECT * FROM information_schema.COLUMNS WHERE TABLE_SCHEMA = '$dbck' AND TABLE_NAME = '$如何将自定义键添加到mysql information_schema.columns中,使其看起来像这样?{ "Type": "mediumint
table 1, table 2..... table 160 and i am looking for "animal" column in the whole database.我试过如果这张桌子能工作的话
SELECT * FROM TABLE_NAME WHERE COLUMN_NAME='animal'
Only table descriptions matching the catalog, schema, table name and type criteria are returned.Each table description has the following columns:
TABLE_SCHEMS
as partition_qty,ccu.column_nameleft JOIN information_schema.constraint_column_usageccu ON tc.constraint_catalog = ccu.constraint_catalog
AND tc.constraint_schema = ccu.constraint_schema