Heroku PostrgreSQL客户端找不到关系 [英] Heroku PostrgreSQL client doesn't find relations

查看:108
本文介绍了Heroku PostrgreSQL客户端找不到关系的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用 Heroku 和他的 PostgreSQL 插件。当我登录到 pg:psql 并执行以下操作时:

I am using Heroku and his PostgreSQL addon. When I login to pg:psql and do:

SELECT table_name FROM information_schema.tables WHERE table_schema='public';

我看到了所有表格:

Users
Cities
Registrations

其中

但是当我这样做时:

Which is expected.
But when I do:

select * from users;

结果是:

ERROR:  relation "users" does not exist
LINE 1: select * from users;

有人知道我在做什么错吗?

Does anyone knows what am I doing wrong?

推荐答案

带有混合大小写标识符的经典问题。

Classic problem with mixed case identifiers.

尝试:

select * from "Users";

阅读本章 标识符和关键字 在手册中。

转至为了使您的生活更轻松,只需使用合法的小写标识符,否则您必须对名称进行双引号。

Read the chapter Identifiers and Key Words in the manual.
To make your life easier only use legal, lower case identifiers, or you have to double-quote the names.

这篇关于Heroku PostrgreSQL客户端找不到关系的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆