Answers for "see the columns of a table mysql"

SQL
6

show table columns mysql command line

SHOW COLUMNS from tablename;
Posted by: Guest on April-21-2021
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 "see the columns of a table mysql"

Code answers related to "SQL"

Browse Popular Code Answers by Language