postgres: ERROR: column "catcode" does not exist

postgres: ERROR: column "catcode" does not exist

我有一个名为 catcodes 的 postgress table。当我这样做时

select Catcode from catcodes;

它给我这样的错误

ERROR:  column "catcode" does not exist
LINE 1: select Catcode from catcodes;

当我描述 table 时,有一列 Catcode。

专栏 |输入 |

------------+----------------+

目录代码 |字符变化 |

select * from catcodes

虽然有效。

Postgres 区分大小写,您应该尝试使用引号

SELECT "Catcode" FROM catcodes;

sql - Postgres Case Sensitivity - Stack Overflow