问题现象
使用下面语句查询得到的列别名是大写, 但是起的别名是小写, 没有达到我想要的效果
select t.channel as id from T_CHANNEL_INFO t;
解决方案
select t.channel as "id" from T_CHANNEL_INFO t;
Java中的使用
sql.append("select B.INFO_TITLE "title", "); sql.append(" B.INFO_CONTENT "content", "); sql.append(" B.IMAGE_PATH "image", "); sql.append(" B.RELEASE_NAME "userid", "); sql.append(" B.RELEASE_TIME "reltime", "); sql.append(" B.EFFECT_START_TIME "starttime", "); sql.append(" B.EFFECT_END_TIME "endtime" ");