To get all tables with columns columnA
or ColumnB
in the database YourDatabase
:
SELECT DISTINCT TABLE_NAME
FROM INFORMATION_SCHEMA.COLUMNS
WHERE COLUMN_NAME IN ('columnA','ColumnB')
AND TABLE_SCHEMA='YourDatabase';
More Related Contents:
- MySQL disable all triggers
- What’s the difference between utf8_general_ci and utf8_unicode_ci?
- MySQL Error: : ‘Access denied for user ‘root’@’localhost’
- Usage of MySQL’s “IF EXISTS”
- Using union and order by clause in mysql
- Binary Data in MySQL [closed]
- mysql -> insert into tbl (select from another table) and some default values [duplicate]
- Convert MySQL schema to Github Wiki?
- mysql select from n last rows
- Install MySQL on Ubuntu without a password prompt
- Exporting results of a Mysql query to excel?
- Capitalize first letter of each word, in existing table
- use mysql SUM() in a WHERE clause
- A constraint to prevent the insert of an empty string in MySQL
- Search all columns of a table using a single where condition with single keyword in mysql
- MySQL trigger to update a field to the value of id
- How to get a list of MySQL views?
- Case statement in MySQL
- MySQL: Inner join vs Where [duplicate]
- Selecting from two tables with inner join and limit [duplicate]
- MySQL substring extraction using delimiter
- Convert Unix timestamp into human readable date using MySQL
- Why the order of evaluation for expressions involving user variables is undefined?
- MySQL : retrieve a large select by chunks
- MySQL – insert data from another table merged with constants
- How to SELECT by MAX(date)?
- MySQL matching unicode characters with ascii version
- Xampp-mysql – “Table doesn’t exist in engine” #1932
- Unserialize through query at database level itself
- Detecting utf8 broken characters in MySQL