Thursday, March 29, 2012

Get Column Names Text from MySQL

So, I was using describe table. But, then I found this which helps me reduce the amount of crap I have to pull out while creating a comma delimited list.

select column_name from information_schema.columns where table_name='tablename';

Followers