Reputation: 2062
I want to get all the Table Names
from database which Table has a Column with particular DataType
.
Let's say image is the DataType
, then I want to find all the Table Names which have one or more column of image type in it.
Upvotes: 0
Views: 319
Reputation: 44796
select * from information_schema.columns
Add where DATA_TYPE = 'datatype'
to get columns of a specific type.
(This is ANSI/ISO SQL standard, not supported by all dbms products.)
Upvotes: 1