简体   繁体   中英

postgres: ERROR: column “catcode” does not exist

I have a postgress table called catcodes. When I do

select Catcode from catcodes;

It gives me an error like this

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

when I describe the table there is a column Catcode.

Column | Type |

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

Catcode | character varying |

select * from catcodes

works though.

Postgres is case-sensitive, you should try using quotes

SELECT "Catcode" FROM catcodes;

sql - Postgres Case Sensitivity - Stack Overflow

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM