Simple Update command -> ERROR 1054 (42S22): Unknown column 'Value' in 'NEW'
Posted by:
Jim Robins
Date: February 10, 2023 01:09PM
I have a coins table -
+-----------------+---------------+------+-----+---------+----------------+
| Field | Type | Null | Key | Default | Extra |
+-----------------+---------------+------+-----+---------+----------------+
| id | int | NO | PRI | NULL | auto_increment |
| Denomination_Id | int | NO | MUL | NULL | |
| Year | int | NO | | NULL | |
| Country_Id | int | NO | MUL | NULL | |
| Grade_Id | int | NO | MUL | NULL | |
| Mint | varchar(15) | YES | MUL | NULL | |
| PurchaseDate | datetime | YES | | NULL | |
| Obversa | varchar(25) | YES | | NULL | |
| Reverse | varchar(25) | YES | | NULL | |
| Comments | varchar(25) | YES | | NULL | |
| Price | double(6,2) | YES | | NULL | |
| Qty | int | YES | | 0 | |
| CoinTotal | decimal(10,2) | YES | | NULL | |
| Catalog | varchar(15) | YES | | NULL | |
+-----------------+---------------+------+-----+---------+----------------+
I cannot update it
update coins set Denomination_Id = 14 where Denomination_Id = 384;
ERROR 1054 (42S22): Unknown column 'Value' in 'NEW'
What am I missing???
Subject
Views
Written By
Posted
Simple Update command -> ERROR 1054 (42S22): Unknown column 'Value' in 'NEW'
75
February 10, 2023 01:09PM
Sorry, only registered users may post in this forum.
Content reproduced on this site is the property of the respective copyright holders.
It is not reviewed in advance by Oracle and does not necessarily represent the opinion
of Oracle or any other party.