Atrixnet Code Share and Geek Resources | Can you grok it?

Dec/09

2

Select the actual column names from a table in MySQL

1
2
3
SELECT column_name
FROM information_schema.`COLUMNS` COLUMNS
WHERE table_name = 'TABLE_NAME';

·

No comments yet.

Leave a Reply

<<

>>

Atrixnet is owned and operated by me, Tommy Butler. Sometimes I do contract networking/programming jobs. Contact me for my résumé

 

Atrixnet is
Atrixnet is Linux Powered! - click to visit www.linux.com
Wikipedia Affiliate Button