pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
psql problem
4+ messages / 4 participants
[nested] [flat]

* psql problem
@ 2000-05-31 16:51 Rick Parker <Rick_Parker@boscomm.net>
  2000-05-31 17:21 ` Re: psql problem Ed Loehr <eloehr@austin.rr.com>
  0 siblings, 1 reply; 4+ messages in thread

From: Rick Parker @ 2000-05-31 16:51 UTC (permalink / raw)
  To: pgsql-sql

Does anyone know why when I am in a particular DB as user postgres and use
the following statement, why I get this error?" 

This is the statement;
SELECT * FROM some_file where ID = 1;


----------------------------------------------------------------------------
Error: ERROR:  attribute 'id' not found
Execution time 0.02 sec.


But if I use the following statement, everything is returned fine.

SELECT * FROM servlet_file;


Thanks ahead of time,

Rick Parker




^ permalink  raw  reply  [nested|flat] 4+ messages in thread

* Re: psql problem
  2000-05-31 16:51 psql problem Rick Parker <Rick_Parker@boscomm.net>
@ 2000-05-31 17:21 ` Ed Loehr <eloehr@austin.rr.com>
  2000-05-31 17:36   ` Re: psql problem Mitch Vincent <mitch@venux.net>
  0 siblings, 1 reply; 4+ messages in thread

From: Ed Loehr @ 2000-05-31 17:21 UTC (permalink / raw)
  To: Rick Parker <Rick_Parker@boscomm.net>; +Cc: pgsql-sql

What is the definition of the table 'some_table'??

Regards,
Ed Loehr

Rick Parker wrote:
> 
> Does anyone know why when I am in a particular DB as user postgres and use
> the following statement, why I get this error?"
> 
> This is the statement;
> SELECT * FROM some_file where ID = 1;
> 
> ----------------------------------------------------------------------------
> Error: ERROR:  attribute 'id' not found
> Execution time 0.02 sec.
> 
> But if I use the following statement, everything is returned fine.
> 
> SELECT * FROM servlet_file;
> 
> Thanks ahead of time,
> 
> Rick Parker



^ permalink  raw  reply  [nested|flat] 4+ messages in thread

* Re: psql problem
  2000-05-31 16:51 psql problem Rick Parker <Rick_Parker@boscomm.net>
  2000-05-31 17:21 ` Re: psql problem Ed Loehr <eloehr@austin.rr.com>
@ 2000-05-31 17:36   ` Mitch Vincent <mitch@venux.net>
  0 siblings, 0 replies; 4+ messages in thread

From: Mitch Vincent @ 2000-05-31 17:36 UTC (permalink / raw)
  To: Rick Parker <Rick_Parker@boscomm.net>; +Cc: pgsql-sql

> > Does anyone know why when I am in a particular DB as user postgres and
use
> > the following statement, why I get this error?"
> >
> > This is the statement;
> > SELECT * FROM some_file where ID = 1;
> >
>
> --------------------------------------------------------------------------
--
> > Error: ERROR:  attribute 'id' not found
> > Execution time 0.02 sec.

That indicates that you have no column named 'id'..

> > But if I use the following statement, everything is returned fine.
> >
> > SELECT * FROM servlet_file;

That's a totally different query which would yeild totally different
results..

-Mitch






^ permalink  raw  reply  [nested|flat] 4+ messages in thread

* RE: psql problem
@ 2000-06-02 07:10 Volker Paul <vpaul@dohle.com>
  0 siblings, 0 replies; 4+ messages in thread

From: Volker Paul @ 2000-06-02 07:10 UTC (permalink / raw)
  To: pgsql-sql

Does anyone know why when I am in a particular DB as user postgres and use
the following statement, why I get this error?" 

This is the statement;
SELECT * FROM some_file where ID = 1;

[Volker Paul]  If your ID field is really uppercase, try:
SELECT * FROM some_file where "ID" = 1;

Cheers,

Volker



^ permalink  raw  reply  [nested|flat] 4+ messages in thread


end of thread, other threads:[~2000-06-02 07:10 UTC | newest]

Thread overview: 4+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2000-05-31 16:51 psql problem Rick Parker <Rick_Parker@boscomm.net>
2000-05-31 17:21 ` Ed Loehr <eloehr@austin.rr.com>
2000-05-31 17:36   ` Mitch Vincent <mitch@venux.net>
2000-06-02 07:10 RE: psql problem Volker Paul <vpaul@dohle.com>

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox