SQL : Meta Data
Get List of column Names in Table.
SELECT Column_name FROM Information_schema.columns WHERE Table_name LIKE 'robsAwesomeTable'
Get Name of Table
Can be used to check if table exists dynamically.
SELECT * FROM Information_schema.tables WHERE Table_name LIKE 'robsAwesomeTable'
Get length of varchar Fields
SELECT column_name, data_type, character_maximum_length FROM information_schema.columns WHERE table_name like 'robsAwesomeTable'