Thanks to visit codestin.com
Credit goes to postgrespro.com

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 [email protected]
Whole thread Raw
In response to Need another set of eyes on this  ("James B. Byrne" <[email protected]>)
Responses Re: Need another set of eyes on this
List pgsql-general
At 2021-01-25T14:17:42-05:00, James B. Byrne <[email protected]> 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