Oracle - 别名大小写的解决方案
问题现象
使用下面语句查询得到的列别名是大写, 但是起的别名是小写, 没有达到我想要的效果
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\" ");
相关推荐
shilukun 2020-10-10
lklong 2020-11-22
oraclemch 2020-11-06
周嘉笙 2020-11-09
iilegend 2020-10-19
EricRay 2020-10-16
zhuzhufxz 2020-09-16
dataminer 2020-08-17
bfcady 2020-08-16
Hody 2020-08-16
FightFourEggs 2020-08-16
数据库设计 2020-08-16
Seandba 2020-08-16
Omega 2020-08-16
zjyzz 2020-08-16
yanghuatong 2020-08-16
ktyl000 2020-08-16
dbasunny 2020-08-16