N
Neon2y ago
deep-jade

Can't query my DB with SQL EDITOR

Hi everybody ! I'm so confused to not be able to query my DB with SQL EDITOR tool. Each time I try to query a table which exists in my DB (as you can see in the picture), I have the same error message "ERROR: relation "categorie" does not exist (SQLSTATE 42P01)"...
No description
6 Replies
deep-jade
deep-jadeOP2y ago
No description
national-gold
national-gold2y ago
This is a case issue. Try quoting your table and column names. Postgres will fold names to lowercase otherwise.
deep-jade
deep-jadeOP2y ago
So I should query like that : SELECT * FROM "categorie" ? Thank you to spend your time to help me so quickly !
national-gold
national-gold2y ago
Hey, in your case, SELECT * FROM "Categorie" should work.
deep-jade
deep-jadeOP2y ago
Thank you so much, I feel like a Rookie
national-gold
national-gold2y ago
Not at all! This question has come up more than a few times. The way I like to think about it is that Postgres goes lowercase when you create objects or run query unless you tell it otherwise by using quotes.

Did you find this page helpful?