select COLUMN_NAME from information_schema.columns where table_name='userinfo' ; 

select * from information_schema.columns where table_name='userinfo';