I have a test database with some rows in it that I am trying to do a select on.
If I run this statement in an IDE like DataGrip I get back rows:
command:
SELECT * FROM public."Album";
output:
1,For Those About To Rock We Salute You
2,Balls to the Wall
3,Restless and Wild
4,Let There Be Rock
5,Big Ones
6,Jagged Little Pill
7,Facelift
8,Warner 25 Anos
9,Plays Metallica By Four Cellos
10,Audioslave
I'm trying to do the same thing on the psql command line and it's not working.
I connect to the database and to a select on the table it returns nothing:
\c our_db
our_db=# SELECT * FROM "Album"
If I use a semi colon I get an error:
our_db-# SELECT * FROM "Album";
ERROR: syntax error at or near "SELECT"
LINE 2: SELECT * FROM "Album";
I am new to postgres. I'm on version 12.3
. What am I doing wrong?