How to solve this error, I was in trouble to run that query is anyone please help to execute that query with all the attributes.
PG_QUERY:-
UPDATE mapschema_127_17.layertable_2156_17 AS a
SET "area(sqkm)" = newvalues.area(sqkm),
"county" = newvalues.county,
"countyfp" = newvalues.countyfp,
"geoid" = newvalues.geoid,
"gid" = newvalues.gid,
"land(sqm)" = newvalues.land(sqm),
"state" = newvalues.state,
"statefp" = newvalues.statefp,
"stusps" = newvalues.stusps,
"water(sqm)" = newvalues.water(sqm)
FROM
(VALUES ('2813.807491', 'Rich County', '033', '49033', 1, '2664700959', 'Utah', '49', 'UT', '149106532'),
('3037.725199', 'Cache County', '005', '49005', 2, '3016627502', 'Utah', '49', 'UT', '21097697'),
('8418.300607', 'Duchesne County', '013', '49013', 3, '8379502802', 'Utah', '49', 'UT', '38797805'),
('9543.91397', 'Grand County', '019', '49019', 28, '9512361692', 'Utah', '49', 'UT', '31552278'),
('18870.630612', 'Tooele County', '045', '49045', 29, '17979556898', 'Utah', '49', 'UT', '891073714')) AS newvalues ("area(sqkm)", "county", "countyfp", "geoid", "gid", "land(sqm)", "state", "statefp", "stusps", "water(sqm)")
WHERE a.gid = newvalues.gid
Error:
ERROR: column "sqkm" does not exist LINE 1: ...able_2156_17 as a SET "area(sqkm)"=newvalues.area(sqkm),"cou... ^
Where area(sqkm) is a column name with double precision data type.
sqkmexist in the tablemapschema_127_17.layertable_2156_17?area(sqkm)and it is exist in the tablemapschema_127_17.layertable_2156_17@JimJonesCREATE TABLEstatement?shp2pgsql'2813.807491', 'Rich County', '033', '49033', 1, '2664700959', 'Utah', '49', 'UT', '149106532'is supposed to be2813.807491, 'Rich County', '033', 49033, 1, 2664700959, 'Utah', 49, 'UT', 149106532? Or are all these columns really strings?