Check out example codes for "mysql to get column name in database". It will help you in understanding the concepts better.

Code Example 1

SELECT DISTINCT TABLE_NAME 
    FROM INFORMATION_SCHEMA.COLUMNS
    WHERE COLUMN_NAME IN ('columnA','ColumnB')
        AND TABLE_SCHEMA='YourDatabase';

Code Example 2

SELECT table_name, column_name from information_schema.columns WHERE column_name LIKE '%column_name_to_search%';

Learn ReactJs, React Native from akashmittal.com