[2
PostgreSQL's "column does not exist" Error: A Case-Sensitivity Issue
即使列明确定义了,也是“不存在”的常见postgresql头痛是“不存在”错误。 这通常源于病例敏感性问题。考虑此示例:[
选择“大陆” 来自Network.countries 非洲大陆不是无效的 和大陆'' 限制5
SELECT Continent
FROM network.countries
WHERE Continent IS NOT NULL
AND Continent ''
LIMIT 5
ERROR: column "continent" does not exist
Hint: Perhaps you meant to reference the column "countries.Continent".
Position: 8
通过double quoting “ controment” ,您明确地告诉PostgreSQL将名称视为案例敏感的文字字符串,防止误解。 [2
免责声明: 提供的所有资源部分来自互联网,如果有侵犯您的版权或其他权益,请说明详细缘由并提供版权或权益证明然后发到邮箱:[email protected] 我们会第一时间内为您处理。
Copyright© 2022 湘ICP备2022001581号-3