dbTalk Databases Forums  

relation does not exist

comp.databases.postgresql.novice comp.databases.postgresql.novice


Discuss relation does not exist in the comp.databases.postgresql.novice forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Robert Morgan
 
Posts: n/a

Default relation does not exist - 05-03-2004 , 08:52 PM






Trying to run this query:

UPDATE tblMonitor SET Make = 'Phillips' WHERE Make = 'Ph*';

get the error message that " Error: relation "tblMonitor" does not exist"

yet when I look at the relations it is there.

List of relations
Schema | Name | Type | Owner
--------+------------------+------+------
public | UpdatePC's | table | bob
public | lkpBuildings | table | bob
public | lkpCPU | table | bob
........

public | tblWorkstation | table | bob
(23 rows)


Bob




---------------------------(end of broadcast)---------------------------
TIP 6: Have you searched our list archives?

http://archives.postgresql.org


Reply With Quote
  #2  
Old   
Stephan Szabo
 
Posts: n/a

Default Re: relation does not exist - 05-03-2004 , 09:44 PM






On Tue, 4 May 2004, Robert Morgan wrote:

Quote:
Trying to run this query:

UPDATE tblMonitor SET Make = 'Phillips' WHERE Make = 'Ph*';

get the error message that " Error: relation "tblMonitor" does not exist"
Does it really look exactly like that or does it show as tblmonitor in the
error message?

Quote:
yet when I look at the relations it is there.

List of relations
Schema | Name | Type | Owner
--------+------------------+------+------
public | UpdatePC's | table | bob
public | lkpBuildings | table | bob
public | lkpCPU | table | bob
.......

public | tblWorkstation | table | bob
Well, this doesn't show tblMonitor, but given tblWorkstation, this
probably means you created the table with double quotes around the name
(or your interface did) which means you should use double quotes to refer
to it, so something like:
update "tblMonitor" ...

You may need to double quote the column names if the same is true there.

---------------------------(end of broadcast)---------------------------
TIP 6: Have you searched our list archives?

http://archives.postgresql.org



Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.