【问题标题】:LEFT JOIN in Postgres [duplicate]Postgres中的左连接[重复]
【发布时间】:2018-07-11 02:09:47
【问题描述】:

好的,这个 SQL 查询有什么问题:

select j.* from judge as j 
left join user as u on j.user_id = u.id 
where u.email="john@example.com";
ERROR:  column "john@example.com" does not exist

【问题讨论】:

标签: postgresql left-join


【解决方案1】:

您在实际应该使用单引号的地方使用双引号。 单引号表示值,而双引号表示列和表等。 You can find out more about the difference here.

【讨论】:

    猜你喜欢
    • 2015-08-02
    • 2011-12-22
    • 2021-12-07
    • 1970-01-01
    • 2017-03-13
    • 2014-05-11
    • 2015-12-29
    • 1970-01-01
    相关资源
    最近更新 更多