Connecting Tech Pros Worldwide Help | Site Map

ERROR : relation "master"

Newbie
 
Join Date: Aug 2007
Posts: 3
#1: Aug 19 '07
I am newbie. I want use query : SELECT public.Master.ID, public.Master.Description from Master , but
->Error missing table Master

.If use query : SELECT "public"."Master"."ID", "public"."Master"."Description" from "Master"

It is OK.
SELECT "ID", "Description" from "Master". It's OK

SELECT ID, Description from "Master" . ERROR : column "id" does not exist at character 8.

SELECT ID, Description from Master . ERROR : relation "master" does not exist.

How to use query : SELECT public.Master.ID, public.Master.Description from Master?

Help me please.

Thank you very much
Moderator
 
Join Date: Nov 2006
Location: Boston, USA
Posts: 505
#2: Aug 20 '07

re: ERROR : relation "master"


Hi, hinet.
Please read the Posting Guidelines at the top of the Forum and make sure to use the CODE tags when appropriate in your future postings.

As for your question you apparently created your table with case sensitive name, as well as the fields on it.
Usually this brings no benefits, but a lot of hustles; now any time you refer to your table you need to use quotes:
Expand|Select|Wrap|Line Numbers
  1. SELECT public."Master"."ID", public."Master"."Description" from "Master" ;
Unless you have a good reason to keep it this way I would rename the table and column to keep them case-insensitive. It'll make your life easier.
See ALTER TABLE for details.
Newbie
 
Join Date: Aug 2007
Posts: 3
#3: Aug 22 '07

re: ERROR : relation "master"


Hi michaelb,
Thank you very much for helping
Hlnet
Reply