Bootstrap

PostgreSQL 查询字段as别名驼峰大写未生效的坑

as别名驼峰大写的错误示例:

select id, game_name as gameName from app_projects;

运行效果:

请添加图片描述

as别名驼峰大写的正确示例:

select id, game_name as "gameName" from app_projects;

运行效果:

请添加图片描述

代码示例:

;