You should select column names from the database explicitly in a SELECT statement
Include AS reserved word in SELECT statement
Use getColumnNames() method of the ResultSet object to retrieve a list of names
Use getColumnName() method of the ResultSetMetaData object
Column names are available from a Statement object
Use getName() method of the Columns object
|