为什么Postgresql说“架构不存在”
发布时间:2020-12-13 18:04:49 所属栏目:百科 来源:网络整理
导读:如何让这个查询起作用? SELECT weather.id,cities.name,weather.date,weather.degreeFROM weather JOIN weather.city_id ON cities.idWHERE weather.date = '2011-04-30'; 错误:架构“天气”不存在. 天气不是架构,它是一张桌子! 也许: SELECT weather.id
如何让这个查询起作用?
SELECT weather.id,cities.name,weather.date,weather.degree FROM weather JOIN weather.city_id ON cities.id WHERE weather.date = '2011-04-30'; 错误:架构“天气”不存在. 天气不是架构,它是一张桌子!
也许:
SELECT weather.id,weather.degree FROM weather JOIN cities ON (weather.city_id = cities.id) WHERE weather.date = '2011-04-30'; postgres抱怨关于weather.city_id的加入,这被解释为模式’weather’中名为’city_id’的表/视图 (编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |