Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Using DBeaver to query a PostgreSQL db and get following error: SQL Error [0A000]: ERROR: cross-database references are not implemented

I am completely new to SQL, PostgreSQL, and DBeaver. When trying to simply query a table from a database:

SELECT * FROM operation.fs.ten_q_score;

I get the following error:

SQL Error [0A000]: ERROR: cross-database references are not implemented: "operation.fs.ten_q_score"¶  Position: 15

I have looked at the dblink, but do not even understand how to install something like dblink (even after looking at the actual documentation).

Any guidance is much appreciated!

like image 330
Graham Streich Avatar asked Sep 06 '17 14:09

Graham Streich


People also ask

Does DBeaver use PostgreSQL?

Often referred to as a universal Database Tool, DBeaver supports more than 80 Databases (which are both Relational and Non-Relational) including PostgreSQL, MySQL, SQLite, SQL Server, DB2, Sybase, Phoenix, MS Access, Teradata, Apache Hive, etc.

Which SQL statement is used to get data from a specific table in PostgreSQL?

PostgreSQL SELECT statement is used to fetch the data from a database table, which returns data in the form of result table.


2 Answers

Maybe it will help someone, if you have several connection then you have to right click on connection your are going to work with and set it as active, after that when you press F3 button you will have an access to your currently selected database.

enter image description here

like image 77
Gh111 Avatar answered Sep 20 '22 20:09

Gh111


Add connection here

enter image description here

choose PostgreSQL and type in your connection:

enter image description here

finish setting up connection, connect to db and run

SELECT * FROM fs.ten_q_score;
like image 30
Vao Tsun Avatar answered Sep 17 '22 20:09

Vao Tsun