【发布时间】:2021-08-13 10:16:49
【问题描述】:
我搜索并遵循了各种在线指南,但是没有成功使用以下查询,虽然没有给出错误,但它没有得到预期的结果。
table gBInfo:
(columns) id,userId, fromGB, fromGBId
table User:
(columns) id, firstName, lastName
查询:
select "id", "firstName", "fromGB"
from "User" join "gBInfo"
on 'User.id' = 'gBInfo.userId';
如何让这个查询工作,在列名和表名中使用大写字母。
【问题讨论】:
-
你真的应该避免那些可怕的引用标识符。他们的麻烦比他们值得的要多得多。 wiki.postgresql.org/wiki/…
标签: sql postgresql quoted-identifier