Answers for "how to see all columns in a mysql table"

SQL
0

mysql all columns

-- MySQL
SELECT * 
FROM INFORMATION_SCHEMA.COLUMNS;
Posted by: Guest on May-15-2020
0

find a column in all tables mysql

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

Code answers related to "how to see all columns in a mysql table"

Code answers related to "SQL"

Browse Popular Code Answers by Language