| From: | Peter Coppens <peter(dot)coppens(at)datylon(dot)com> |
|---|---|
| To: | byrnejb(at)harte-lyne(dot)ca |
| Cc: | pgsql-general(at)lists(dot)postgresql(dot)org |
| Subject: | Re: Need another set of eyes on this |
| Date: | 2021-01-25 19:19:59 |
| Message-ID: | 5C9FFA22-94B6-4C9D-99E4-96272BF5E312@datylon.com |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-general |
> On 25 Jan 2021, at 20:17, James B. Byrne <byrnejb(at)harte-lyne(dot)ca> wrote:
>
> I am recreating a test database with data provided for a series of future
> exercises. Presently I am trying to understand why a simple insert statement
> is not working. The user invoking this insert is 'postgres' and has superuser
> privileges.
>
> The error is this:
>
> postgres : STATEMENT: INSERT INTO public.stock(
> stock_num, manu_code, description, unit_price, unit, unit_descr)
> VALUES (3, "SHM", "aluminum Bat", 180.00, "case", "12/case");
> postgres : ERROR: 42703: column "SHM" does not exist at character 105
> postgres : LOCATION: errorMissingColumn, parse_relation.c:3194
> postgres : STATEMENT: INSERT INTO public.stock(
> stock_num, manu_code, description, unit_price, unit, unit_descr)
> VALUES (3, "SHM", "aluminum bat", 180.00, "case", "12/case”)
> ;
Try single quotes
| From | Date | Subject | |
|---|---|---|---|
| Next Message | James B. Byrne | 2021-01-25 20:37:34 | Re: Need another set of eyes on this |
| Previous Message | aNullValue (Drew Stemen) | 2021-01-25 19:19:24 | Re: Need another set of eyes on this |