简体   繁体   English

org.postgresql.util.PSQLException:错误:关系“table_name”不存在

[英]org.postgresql.util.PSQLException:ERROR: relation "table_name" does not exist

Java code Java代码

Above is my Java JDBC Code以上是我的 Java JDBC 代码

List of database数据库列表

and these are my list of database这些是我的数据库列表

Even though my relation name is not "railway" but it is railway (without qoutes) it is giving me error as:即使我的关系名称不是“铁路”但它是铁路(没有 qoutes)它给我的错误是:

org.postgresql.util.PSQLException:ERROR: relation "railway" does not exist

  Position: 16

also what is this Position means?还有这个职位是什么意思?

The SELECT * FROM x is a table query. SELECT * FROM x是一个表查询。 When you connect to the database you connect to a database within the database software, and that database has tables which the query will be applied to.当您连接到数据库时,您将连接到数据库软件中的数据库,并且该数据库具有查询将应用到的表。

Without knowing what your tables are called I can't suggest what it should look like instead, except for that x should be exchanged for the [schema].[tablename]在不知道你的表叫什么的情况下,我不能建议它应该是什么样子,除了 x 应该交换为 [schema].[tablename]

You find the tables in the db by doing:您可以通过执行以下操作在数据库中找到表:

\c railway  -- Connect to the database
\dt         -- List database tables

in the database console.在数据库控制台中。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 org.postgresql.util.PSQLException:错误:关系“序列”不存在 - org.postgresql.util.PSQLException: ERROR: relation “sequence” does not exist org.postgresql.util.PSQLException:错误:关系“产品”不存在 - org.postgresql.util.PSQLException: ERROR: relation "products" does not exist org.postgresql.util.PSQLException:错误:关系“用户”不存在 - SpringBoot,Hibernate,Postgresql - org.postgresql.util.PSQLException: ERROR: relation "users" does not exist - SpringBoot, Hibernate, Postgresql 如何解决“Caused by: org.postgresql.util.PSQLException: ERROR: relation “employee” does not exist Position: 13”错误? - How to resolve "Caused by: org.postgresql.util.PSQLException: ERROR: relation "employee" does not exist Position: 13" error? org.postgresql.util.PSQLException:错误:关系“clienti_id_seq”不存在 - org.postgresql.util.PSQLException: ERROR: the relation“clienti_id_seq” does not exist org.postgresql.util.PSQLException:错误:关系不存在PreparedStatement.executeQuery() - org.postgresql.util.PSQLException : ERROR : relation does NOT exist PreparedStatement.executeQuery () org.postgresql.util.PSQLException:错误:关系“app_user”不存在 - org.postgresql.util.PSQLException: ERROR: relation "app_user" does not exist 嵌套异常是 org.postgresql.util.PSQLException:错误:关系“equ_config”不存在 - nested exception is org.postgresql.util.PSQLException: ERROR: relation "equ_config" does not exist org.postgresql.util.PSQLException:错误:关系“ employee1”不存在 - org.postgresql.util.PSQLException: ERROR: relation “employee1” does not exist 通过JDBC进行Postgres连接:org.postgresql.util.PSQLException:错误:关系“处方”不存在 - Postgres connectivity via JDBC: org.postgresql.util.PSQLException: ERROR: relation “prescriptions” does not exist
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM