创建视图model或执行SQL时,如果字段或表名出现大写字母时,就会报psycopg2.errors.UndefinedColumn类似的问题,原因是PostgreSQL大小写不敏感。

psycopg2.errors.UndefinedColumn: 错误:  字段 a.employeeid 不存在
LINE 3:             SELECT A.id, A.employeeId, A."employeeName", A.g...
                                 ^
HINT:  也许您想要引用列"a.employeeId"
View Code

相关文章:

  • 2021-10-28
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-08-24
  • 2021-04-26
  • 2021-11-14
  • 2021-07-08
猜你喜欢
  • 2021-04-19
  • 2022-02-05
  • 2022-01-30
  • 2021-06-06
  • 2022-12-23
  • 2022-02-08
  • 2022-12-23
相关资源
相似解决方案