2
It would have to bring only the columns of the bank and order of the form that I want for example:
show columns FROM table
The above code brings up all table columns.
bring the ordered columns.
SHOW TABLE.COLUNA1,
TABLE.COLUNA2
FROM TABLE
2
It would have to bring only the columns of the bank and order of the form that I want for example:
show columns FROM table
The above code brings up all table columns.
bring the ordered columns.
SHOW TABLE.COLUNA1,
TABLE.COLUNA2
FROM TABLE
3
Try to use INFORMATION_SCHEMA:
SELECT `COLUMN_NAME`
FROM `INFORMATION_SCHEMA`.`COLUMNS`
WHERE `TABLE_SCHEMA`='yourdatabasename'
AND `TABLE_NAME`='yourtablename';
Browser other questions tagged mysql
You are not signed in. Login or sign up in order to post.