postgresql - Postgres NATURAL 作为属性表示为“自然”
问题描述
我正在使用 openstreetmap 数据并使用工具将其导入 postgres 数据库。openstreetmap 中的一个关键术语是natural。
导入此数据时,postgres 数据库表中的列名是natural
. 问题是,在某些客户端中读取表时,该属性natural
表示为"natural"
导致问题。
有没有办法存储"natural"
或natural
帮助客户正确阅读?
解决方案
natural 是 postgres 中的保留关键字:
https://www.postgresql.org/docs/current/sql-keywords-appendix.html
如果将关键字用作标识符,则必须引用它们。如果可能,请选择其他名称。
推荐阅读
- amazon-web-services - 无法从一个 AWS 实例远程登录到另一个(解决 master_not_discovered_exception)
- java - 在android studio上使用java和weka复制类
- progressive-web-apps - Service Worker 在托管时不工作,但在 localhost 上工作
- zsh - zsh _arguments:带有不同数量参数的 --option 和之后的 --other-option
- bash - 如何使用带有 bash 脚本和 xdotool 的 Thunderbird 发送自动邮件?
- mule - HTTPS 连接器上无法识别 Spring 属性
- python - AttributeError: 'QComboBox' 对象没有属性 'setPlaceholderText' 我该如何解决这个问题?
- django - Django - 编辑或删除表中的选定行
- c++ - 使用 void 函数时没有输出
- python-3.x - matplotlib python datetime TypeError