PostgreSQL使用inner join删除数据
PostgreSQL使用inner join删除数据
DELETE B.* FROM m_productprice B INNER JOIN m_product C ON B.m_product_id = C.m_product_id WHERE C.upc = '7094' AND B.m_pricelist_version_id = '1000020'
我在使用PostgreSQL 8.2.11时遇到了以下错误
ERROR: syntax error at or near "B" LINE 1: DELETE B.* from m_productprice B INNER JOIN m_product C ON ...
我尝试了输入
DELETE B from m_productprice B INNER JOIN m_product C ON B.... ERROR: syntax error at or near "B"
然后我又尝试了输入
ERROR: syntax error at or near "INNER" LINE 1: DELETE from m_productprice B INNER JOIN m_product C ON B.m_...
请问我的查询有什么问题吗?
admin 更改状态以发布 2023年5月23日