Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Java > Java and JDK > Servlets
|
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Servlets section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old October 31st, 2004, 11:15 AM
Authorized User
 
Join Date: Sep 2004
Posts: 31
Thanks: 0
Thanked 0 Times in 0 Posts
Default Question about ResultSetMetaData.getColumnLabel

First at all, I would like to apologize if I am in a wrong forum.

In java api, we could use the method "ResultSetMetaData.getColumnLabel()" to get the designated column's suggested title for use in printouts and displays.

For instance, table STUDENT has column STUDENTID which the column is label as "Student ID". So, if I use method getColumnLabel(), then I should be able to get "Student ID" displayed in my column title, correct me if I am wrong.

How to create a label for a particular column? Is it created during the creation of a table? What's the SQL query shold look like?

For your information, I am using DB2 UDB v7.

Thanks in advanced.






Similar Threads
Thread Thread Starter Forum Replies Last Post
Question... stud123 XSLT 3 April 10th, 2006 09:44 AM
Question Ashwini Classic ASP Databases 3 January 10th, 2006 07:20 AM
Question Ashwini Classic ASP Databases 1 January 4th, 2006 06:55 AM
c++ question amahja56 C++ Programming 3 February 24th, 2004 02:45 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.