What is the difference between ResultSetMetaData.getColumnLabel and ResultSetMetaData.getColumnName?
Label: Gets the designated column's suggested title for use in printouts and displays.
Name: Get the designated column's name.
Does anyone know how Label is determined?
If a SQL
AS
is not specified, the value returned fromgetColumnLabel
will be the same as the value returned by thegetColumnName
method.Example: