Home:ALL Converter>getColumnName() return aliasname Oracle

getColumnName() return aliasname Oracle

Ask Time:2016-10-16T00:14:01         Author:Nikhil Sulibhavi

Json Formatter

I am using ojdbc7.jar to connect to oracle from Java. For a query with aliasing, when I do getColumnName() and getColumnLabel() of ResultSetMetaData, both returns the alias name. I want to have the original column name.

Author:Nikhil Sulibhavi,eproduced under the CC 4.0 BY-SA copyright license with a link to the original source and this disclaimer.
Link to original article:https://stackoverflow.com/questions/40061356/getcolumnname-return-aliasname-oracle