pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
Re: ERROR: column "crc" does not exist
5+ messages / 5 participants
[nested] [flat]

* ERROR: column "crc" does not exist
@ 2007-04-12 12:23 ezequias@fastcon.com.br
  2007-04-12 12:15 ` Re: ERROR: column "crc" does not exist Bart Degryse <Bart.Degryse@indicator.be>
  2007-04-12 12:19 ` Re: ERROR: column "crc" does not exist A. Kretschmer <andreas.kretschmer@schollglas.com>
  2007-04-12 12:21 ` Re: ERROR: column "crc" does not exist George Weaver <gweaver@shaw.ca>
  2007-04-12 12:21 ` Re: ERROR: column "crc" does not exist Andrew Sullivan <ajs@crankycanuck.ca>
  0 siblings, 4 replies; 5+ messages in thread

From: ezequias@fastcon.com.br @ 2007-04-12 12:23 UTC (permalink / raw)
  To: pgsql-sql

Hi list,

I have a table with many fields and the latest field is:

"CRC" character varying(255),

When I try to access the table with a select with a where clause like

Select * from base.points where crc = 'e19e26330a0db2f2435106b16623fa82'

The error on the Subject of this e-mail allways appears.

Any help would be great.

Regards,
--
Ezequias Rodrigues da Rocha
http://ezequiasrocha.blogspot.com




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

* Re: ERROR: column "crc" does not exist
  2007-04-12 12:23 ERROR: column "crc" does not exist ezequias@fastcon.com.br
@ 2007-04-12 12:15 ` Bart Degryse <Bart.Degryse@indicator.be>
  3 siblings, 0 replies; 5+ messages in thread

From: Bart Degryse @ 2007-04-12 12:15 UTC (permalink / raw)
  To: pgsql-sql

Try either
- defining the field as: crc character varying(255)
- rewrite your select as: Select * from base.points where "CRC" = 'e19e26330a0db2f2435106b16623fa82';

>>> <ezequias@fastcon.com.br> 2007-04-12 14:23 >>>
Hi list,

I have a table with many fields and the latest field is:

"CRC" character varying(255),

When I try to access the table with a select with a where clause like

Select * from base.points where crc = 'e19e26330a0db2f2435106b16623fa82'

The error on the Subject of this e-mail allways appears.

Any help would be great.

Regards,
--
Ezequias Rodrigues da Rocha
http://ezequiasrocha.blogspot.com ( http://ezequiasrocha.blogspot.com/ )


---------------------------(end of broadcast)---------------------------
TIP 9: In versions below 8.0, the planner will ignore your desire to
       choose an index scan if your joining column's datatypes do not
       match

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

* Re: ERROR: column "crc" does not exist
  2007-04-12 12:23 ERROR: column "crc" does not exist ezequias@fastcon.com.br
@ 2007-04-12 12:19 ` A. Kretschmer <andreas.kretschmer@schollglas.com>
  3 siblings, 0 replies; 5+ messages in thread

From: A. Kretschmer @ 2007-04-12 12:19 UTC (permalink / raw)
  To: pgsql-sql

am  Thu, dem 12.04.2007, um  9:23:39 -0300 mailte ezequias@fastcon.com.br folgendes:
> Hi list,
> 
> I have a table with many fields and the latest field is:
> 
> "CRC" character varying(255),

You have created a field called "CRC", with upper-case.



> 
> When I try to access the table with a select with a where clause like
> 
> Select * from base.points where crc = 'e19e26330a0db2f2435106b16623fa82'

You searched for a field "crc", with lower-case. rewrite your query to :
... where "CRC" = 'e19e26330a0db2f2435106b16623fa82'


Andreas
-- 
Andreas Kretschmer
Kontakt:  Heynitz: 035242/47150,   D1: 0160/7141639 (mehr: -> Header)
GnuPG-ID:   0x3FFF606C, privat 0x7F4584DA   http://wwwkeys.de.pgp.net



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

* Re: ERROR: column "crc" does not exist
  2007-04-12 12:23 ERROR: column "crc" does not exist ezequias@fastcon.com.br
@ 2007-04-12 12:21 ` George Weaver <gweaver@shaw.ca>
  3 siblings, 0 replies; 5+ messages in thread

From: George Weaver @ 2007-04-12 12:21 UTC (permalink / raw)
  To: pgsql-sql


 Original Message From: <ezequias@fastcon.com.br>

> I have a table with many fields and the latest field is:
> 
> "CRC" character varying(255),
   ^^^^^^
 
> Select * from base.points where crc = 'e19e26330a0db2f2435106b16623fa82'

What happens when you enter:

Select * from base.points where "CRC" = 'e19e26330a0db2f2435106b16623fa82';

Regards,
George





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

* Re: ERROR: column "crc" does not exist
  2007-04-12 12:23 ERROR: column "crc" does not exist ezequias@fastcon.com.br
@ 2007-04-12 12:21 ` Andrew Sullivan <ajs@crankycanuck.ca>
  3 siblings, 0 replies; 5+ messages in thread

From: Andrew Sullivan @ 2007-04-12 12:21 UTC (permalink / raw)
  To: pgsql-sql

On Thu, Apr 12, 2007 at 09:23:39AM -0300, ezequias@fastcon.com.br wrote:
> 
> "CRC" character varying(255),
  ^^^^^

> Select * from base.points where crc = 'e19e26330a0db2f2435106b16623fa82'
                                  ^^^

"CRC" != crc.  You need to spell the column name correctly.  Or don't
quote the identifier when you create the table.

A

-- 
Andrew Sullivan  | ajs@crankycanuck.ca
A certain description of men are for getting out of debt, yet are
against all taxes for raising money to pay it off.
		--Alexander Hamilton



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


end of thread, other threads:[~2007-04-12 12:23 UTC | newest]

Thread overview: 5+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2007-04-12 12:23 ERROR: column "crc" does not exist ezequias@fastcon.com.br
2007-04-12 12:15 ` Bart Degryse <Bart.Degryse@indicator.be>
2007-04-12 12:19 ` A. Kretschmer <andreas.kretschmer@schollglas.com>
2007-04-12 12:21 ` George Weaver <gweaver@shaw.ca>
2007-04-12 12:21 ` Andrew Sullivan <ajs@crankycanuck.ca>

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