chibineku Posted October 18, 2009 Report Share Posted October 18, 2009 Title says it all really. If I had a table with unknown columns and I wanted to return a list of column names, how can I do it without selecting any particular row? I know I could just select a record and foreach through them, extracting the keys, but is there a way without actually extracting any particular record? Link to comment Share on other sites More sharing options...
Synook Posted October 19, 2009 Report Share Posted October 19, 2009 (edited) SHOW columns IN `table` SHOW is a sort of meta-SELECTor. Edited October 19, 2009 by Synook Link to comment Share on other sites More sharing options...
chibineku Posted October 19, 2009 Author Report Share Posted October 19, 2009 спасибо! Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now