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.11PostgreSQL的刪除與內部聯接
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_...
是什麼我的查詢的問題?
8.2?你應該儘快升級。該版本不再受支持。請閱讀手冊:DELETE語句沒有'INNER JOIN':http://www.postgresql.org/docs/8.2/static/sql-delete.html – 2012-08-01 06:53:31
任何執行此查詢的方法加入 – dude 2012-08-01 06:55:38
請參閱手冊,有一個例子完全。 – 2012-08-01 06:59:09