ResultSetMetaData.getColumnLabel和ResultSetMetaData.getColumnName之间的区别是什么
Label:获取在打印输出和显示中使用的指定列的建议标题。
名称:获取指定列的名称。
有人知道标签是如何确定的吗?
发布于 2010-11-25 04:30:14
String getColumnLabel(int column) throws SQLException; 如果未指定SQL AS,则从getColumnLabel返回的值将与getColumnName方法返回的值相同。
示例:
select id as user_no from usershttps://stackoverflow.com/questions/4271152
复制相似问题