PostgreSQL column 'foo' does not exist

前端 未结 10 2148
盖世英雄少女心
盖世英雄少女心 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:16

    I also ran into this error when I was using Dapper and forgot to input a parameterized value.

    To fix I had to ensure that the object passed in as a parameter had properties matching the parameterised values in the SQL string.

提交回复
热议问题