Re: 'AS' keyword not working?
Posted by: Mark Matthews
Date: May 25, 2008 02:11PM

Brian,

It's working as designed. The JDBC specification states that a column name is not changed by "AS", it's always the actual name of the column (if such a name exists), so that clients can build a query based on metadata alone.

One can only find the name used in the 'AS' through ResultSetMetaData's "getColumnLabel()" method.

-Mark

Mark Matthews
Consulting Member Technical Staff - MySQL Enterprise Tools
Oracle
http://www.mysql.com/products/enterprise/monitor.html

Options: ReplyQuote


Subject
Written By
Posted
May 24, 2008 12:21PM
Re: 'AS' keyword not working?
May 25, 2008 02:11PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.