I am simply trying to query all details present in Users table:
select * from Users;
but it says table Users doesn’t exist:
ERROR: relation "users" does not exist
LINE 1: select * from Users;
********** Error **********
ERROR: relation "users" does not exist
SQL state: 42P01
Character: 15
I might be committing a silly mistake.
“Bare” identifiers in PostgreSQL are lowercased. So
Usersis treated asusers(look at the error message; it mentionesusers).To get it to work, put the identifier in double quotes like
SELECT * from "Users";.If your identifiers are all lowercase already, and aren’t reserved words, then you can use them bare, otherwise quote them with double quotes.
This applies to identifiers (so table names, column names, schema names, and a few other things).