我有一个关于postgre的查询:
SELECT * FROM "Table1" as "tbl1" INNER JOIN "Table2" as "tbl2" ON "tbl1"."id"="tbl2"."id"
它工作正常,但是当我使用
时 SELECT "tbl1"."name","tbl2"."name" FROM "Table1" as "tbl1" INNER JOIN "Table2" as "tbl2" ON "tbl1"."id"="tbl2"."id"
出现错误:列项tbl1.name不存在。
我不知道为什么会发生,我使用postgresql和python。提前谢谢!