Omitting the double quote to do query on PostgreSQL

Your problem with this query started when you created your table. When you create your table, don’t use quotes.

Use this:

CREATE TABLE a ( ... );

Not this:

CREATE TABLE "A" ( ... );

The latter will make it so that you always have to quote it later. The former makes it a normal name and you can use SELECT * FROM a; or SELECT * FROM A;

If you can’t just recreate your table, use the ALTER TABLE syntax:

ALTER TABLE "A" RENAME TO a;

Leave a Comment