PostgreSQL对表名、字段名都是区分大小写的。
Postgresql 自动将大写转换成小写
# select 的字段名要么全部为大写字母,要么全部为小写字母,不能既有大写又有小写字母
原表字段名全部为小写字母,active
# 1、全部为大写字母
select ACTIVE from schema_name.table_name <=> select active from schema_name.table_name
# 2、全部为小写字母
select active from schema_name.table_name <=> select active from schema_name.table_name
原表字段名中至少包含一个大写字母
# 3、既有大写又有小写字母
select "createTime" from schema_name.table_name <=> select createtime from schema_name.table_name
# 4、全部为大写字母
select "USERNAME" from schema_name.table_name <=> select username from schema_name.table_name
原表字段名中至少包含一个大写字母时,除了3、4 左边的这种写法,其他的写法都会报错。
注意:原表字段名中至少包含一个大写字母时,字段名要加 **双引号**,记住一定是双引号,单引号不行。
# kettle使用 “表输入” 步骤时就会发现,没有加双引号是会报没有该字段的。
ERROR: column "createtime" does not exist
https://blog.csdn.net/chenruijia170707/article/details/81195948