Kcko
10/29/2018 - 1:05 PM

Find column name in database

SELECT 
    table_name, 
    column_name, 
    data_type,
    ordinal_position

FROM  INFORMATION_SCHEMA.COLUMNS 

WHERE TABLE_SCHEMA = 'database-name'     
AND COLUMN_NAME = 'column'