Mysql get names of columns SHOW COLUMNS FROM tablename https://stackoverflow.com/questions/4165195/mysql-query-to-get-column-names