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'
saya mendapatkan kesalahan PostgreSQL 8.2.11 berikut
ERROR: syntax error at or near "B"
LINE 1: DELETE B.* from m_productprice B INNER JOIN m_product C ON ...
saya mencoba memberi
DELETE B from m_productprice B INNER JOIN m_product C ON B....
ERROR: syntax error at or near "B"
saya mencoba memberi
ERROR: syntax error at or near "INNER"
LINE 1: DELETE from m_productprice B INNER JOIN m_product C ON B.m_...
apa masalah dengan permintaan saya?
metode alternatif apa pun untuk menjalankan kueri ini tanpa gabung dalam
—
dude
Lihat manual, ada contoh untuk itu.
—
a_horse_with_no_name
INNER JOINtersedia untuk pernyataan DELETE: postgresql.org/docs/8.2/static/sql-delete.html