Search...
FAQs
Subscribe
Pie
FAQs
Recent topics
Flagged topics
Hot topics
Best topics
Search...
Search within JDBC and Relational Databases
Search Coderanch
Advance search
Google search
Register / Login
Post Reply
Bookmark Topic
Watch Topic
New Topic
programming forums
Java
Mobile
Certification
Databases
Caching
Books
Engineering
Micro Controllers
OS
Languages
Paradigms
IDEs
Build Tools
Frameworks
Application Servers
Open Source
This Site
Careers
Other
Pie Elite
all forums
this forum made possible by our volunteer staff, including ...
Marshals:
Campbell Ritchie
Jeanne Boyarsky
Ron McLeod
Paul Clapham
Liutauras Vilda
Sheriffs:
paul wheaton
Rob Spoor
Devaka Cooray
Saloon Keepers:
Stephan van Hulst
Tim Holloway
Carey Brown
Frits Walraven
Tim Moores
Bartenders:
Mikalai Zaikin
Forum:
JDBC and Relational Databases
Retrieve MySQL table column names
Bryan Scarbrough
Ranch Hand
Posts: 49
posted 18 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
How can I get the column names from a MySQL table?
Bryan Scarbrough<br /> <br />Consistency is the last resort of the unimaginative!
Padma Lalwani
Ranch Hand
Posts: 49
posted 18 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Run the query as select *, get ResultSetMetaData from the ResultSet, use getColumnCount to get number of columns and then loop through to get name using getColumnName
Padma
Bryan Scarbrough
Ranch Hand
Posts: 49
posted 18 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Thanks, that was easier than I thought it would be!
Bryan Scarbrough<br /> <br />Consistency is the last resort of the unimaginative!
reply
reply
Bookmark Topic
Watch Topic
New Topic
Boost this thread!
Similar Threads
MySQL naming conventions?
how to get top 5 result from database
Primary Key contains "#" sign
Problem with JTable
MySQL Case Sensitive Problem
More...