【发布时间】:2017-01-30 02:41:40
【问题描述】:
我有两个表:productprice 和 product 并且我在该表上有一个字段名称 id,我想根据产品代码更新 productprice 上的字段名称 enddate 我尝试了几种语法:
update productprice
set enddate = ’2016-12-31 00:00:00’
from product inner join
productprice
on product.id = productprice.id
where product.code = ‘9301940252’
但结果是“表名“productprice”指定了多次”
我在这里做错了什么?谢谢。
【问题讨论】:
标签: postgresql