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_...
クエリの問題は何ですか?
内部結合なしでこのクエリを実行するための任意の別の方法
—
男
マニュアルを参照してください。そのための例があります。
—
a_horse_with_no_name 2012
INNER JOIN
DELETEステートメントを利用できません:postgresql.org/docs/8.2/static/sql-delete.html