Postgresql Column Not Found, But Shows in Describe

后端 未结 1 1237
北海茫月
北海茫月 2020-12-02 02:48

There have been similar posts, but none helped me solve my problem.

I am trying to do a simple select on a table, retrieving only one column. The column shows in the

相关标签:
1条回答
  • 2020-12-02 03:33

    Why do you use ` in column name?

    You can use it without any quote characters, while with quote characters it may be case sensitive. Also such quote char is ", and not `

    So use:

    select "transactionAmount" 
    from ... 
    where ... 
    group by "transactionAmount";
    

    Read about identifiers at: http://www.postgresql.org/docs/current/static/sql-syntax-lexical.html

    0 讨论(0)
提交回复
热议问题