Answers for "mysql how to get specific column from table"

SQL
1

get table which have specific columns in mysql

SELECT DISTINCT TABLE_NAME 
    FROM INFORMATION_SCHEMA.COLUMNS
    WHERE COLUMN_NAME IN ('columnA','ColumnB')
        AND TABLE_SCHEMA='YourDatabase';
Posted by: Guest on April-09-2020

Code answers related to "mysql how to get specific column from table"

Code answers related to "SQL"

Browse Popular Code Answers by Language