MySQL Forums
Forum List  »  Newbie

Metadata/system catalog queries...
Posted by: J. H.
Date: March 31, 2005 01:16PM

I was wondering if there was a way to do metadata/system catalog queries, like say I want to retrieve the names of all the tables in a database which have a column named "blah_seq".
Most recently I used oracle, and in that "system" you could say something like select distinct table_name from all_tab_columns where lower(column_name) = "blah_seq".
I used to do this in Sybase/SQL Server, but I forget that catalog interrogation syntax.
What I'm wondering is how to do this in MySql.
I took a stab at a simpler query (for only one table in MySql like)
select * from (show columns from t_sometable) where field like "%blah%'
and that didn't work either.
Can someone point me to a system catalog interrogation mechanism?
Thank you very much.
-J.

Options: ReplyQuote


Subject
Written By
Posted
Metadata/system catalog queries...
March 31, 2005 01:16PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.