Re: Problem with inserting data into a table.....

From: Ragnar Hafstað <gnari(at)simnet(dot)is>
To: Sharon Abu <Sharon_Abu(at)packetlight(dot)com>
Cc: "'pgsql-general(at)postgresql(dot)org'" <pgsql-general(at)postgresql(dot)org>
Subject: Re: Problem with inserting data into a table.....
Date: 2005-02-22 12:37:06
Message-ID: 1109075826.17839.129.camel@localhost.localdomain
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Tue, 2005-02-22 at 14:08 +0200, Sharon Abu wrote:

> insert into COL_LED_TBL
> (LED_STATE_COLOR,NEID,LED_STATE_MODE,PHY_INDEX,PORT_INDEX,MODE_DFGH)
> values (1,1234,3,0,104,'test led numbetr 1');
>
> the name of the table & its columns are correct (I've checked it....)
>
> The execution fails with the following message : ERROR: relation
> "col_led_tbl" does not exist

postgres folds names to lowercase. either create your table and it's
columns with lowercase names, or quote the names:

insert into "COL_LED_TBL" ("LED_STATE_COLOR", "NEID","LED_STATE_MODE",
"PHY_INDEX", "PORT_INDEX", "MODE_DFGH")
values (1,1234,3,0,104,'test led numbetr 1');

gnari

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Boris Makovecki 2005-02-22 12:41:33 migration
Previous Message Richard Huxton 2005-02-22 12:32:13 Re: Problem with inserting data into a table.....