Re: Need another set of eyes on this - Mailing list pgsql-general

From aNullValue (Drew Stemen)
Subject Re: Need another set of eyes on this
Date
Msg-id a5d0205c-3292-4037-8603-662eb6ec76c9@www.fastmail.com
Whole thread Raw
In response to Need another set of eyes on this  ("James B. Byrne" <byrnejb@harte-lyne.ca>)
Responses Re: Need another set of eyes on this
List pgsql-general
At 2021-01-25T14:17:42-05:00, James B. Byrne <byrnejb@harte-lyne.ca> sent:
> 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

You're using double-quotes rather than single-quotes for string values.

"SHM" = column
'SHM' = string value



pgsql-general by date:

Previous
From: "James B. Byrne"
Date:
Subject: Need another set of eyes on this
Next
From: Peter Coppens
Date:
Subject: Re: Need another set of eyes on this