PostgreSQL column 'foo' does not exist

前端 未结 10 2131
盖世英雄少女心
盖世英雄少女心 2020-12-05 12:32

I have a table that has 20 integer columns and 1 text column named \'foo\'

If I run query:

SELECT * from table_name where foo is NULL
10条回答
  •  旧巷少年郎
    2020-12-05 13:08

    the problem occurs because of the name of column is in camel case internally it wraps it in " "(double quotes) to solve this, at the time of inserting values in table use single quotes ('')

    e.g. insert into schema_name.table_name values(' ',' ',' ');

提交回复
热议问题