Hello Any help to correct this problem in PostgreSQL 9.6
I have a query made by the graphic assistant, which shows the automatic code:
SELECT * FROM public.pais
ORDER BY "CodPais" ASC
The previous code shows the results of the country table but when I do the same query replacing the * with the fields in the table as follows:
SELECT CodPais, NomPais FROM public.pais
ORDER BY "CodPais" ASC
throws the following error:
ERROR: the "codpais" column does not exist LINE 1: SELECT CodPais, NomPais FROM public.pais ^ HINT: You probably want to refer to the column «country.CodPais». ********** Error **********
ERROR: the "codpais" column does not exist SQL state: 42703 Hint: You probably want to refer to the column «country.CodPais». Character: 8
That same error throws me with all the tables of the database when doing query by fields, I had PostgreSQL 9.6.4 and now I tried with the 9.6.5 after formatting my pc.
Note: In SQL Server 2016 Express works 100%, I am about to keep my traditional DBMS (SQL Server); but first I want to see if someone helps me with this error, so far is my only disappointment with postgreSQL.