I know how to get the columns from a table using the following SQL statement:
SELECT COLUMN_NAME FROM INFORMATION_SCHEMA.COLUMNS WHERE (TABLE_NAME = \'MYTA
Wouldn't DESCRIBE TABLE_NAME; do the trick?