In MySQL Workbench how do I search for a column which can be located in any schema. Basically I'm looking for a column called "notification" and I want to search all schemas for that column.
Look at this screenshot where I know for a fact there is a column named "activated_at" yet when I search for it after highlighting all my tables (using select all command also) it finds nothing. Why?
but if I run the following query its able to find the column, so why not with GUI?
SELECT
table_schema,
table_name,
column_name,
data_type,
ordinal_position
FROM INFORMATION_SCHEMA.COLUMNS
WHERE column_name = 'activated_at' ;
Best Answer
Open a new
Query
tab - from theFile
menu option choose theNew Query
item (second one down).Then, it's exactly the same as in the MySQL tool.
will give the result:
For some reason, the
information_schema
database doesn't appear in the databases list in the GUI, but if you explicitly 'use' it, it will work.Et voilĂ