postgres-从现有表中选择*-psql说该表不存在 [英] postgres - select * from existing table - psql says table does not exist

查看:271
本文介绍了postgres-从现有表中选择*-psql说该表不存在的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

从另一个程序创建的新的postgres安装数据库db test表 Graeber。

Fresh postgres installation, db 'test', table 'Graeber' created from another program.

我想查看表 Graeber的内容。当我连接到数据库并尝试选择 Graeber的内容时,应用程序告诉我:错误:关系 graeber不存在

I want to see the content of table 'Graeber'. When I connect to the database and try to select the content of 'Graeber', the application tells me : ERROR: relation "graeber" does not exist.

查看屏幕截图:

这里出了什么问题?

推荐答案

尝试按以下方式添加架构:

Try adding the schema as in:

select *
from public.Graeber

如果这不起作用,那是因为您有一个大写字母,请尝试:

If that doesn't work, then it is because you have a capital letter so try:

select *
from public."Graeber"

希望这会有所帮助。

这篇关于postgres-从现有表中选择*-psql说该表不存在的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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