相关疑难解决方法(0)

使用内部联接删除PostgreSQL

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'
Run Code Online (Sandbox Code Playgroud)

我收到以下错误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 ...
Run Code Online (Sandbox Code Playgroud)

我试着给

DELETE B from m_productprice B  INNER JOIN m_product C ON B....
 ERROR:  syntax error at or near "B"
Run Code Online (Sandbox Code Playgroud)

我试着给

ERROR:  syntax error at or near "INNER"
LINE 1: DELETE from m_productprice B  INNER JOIN m_product C …
Run Code Online (Sandbox Code Playgroud)

sql postgresql

169
推荐指数
6
解决办法
12万
查看次数

如何删除表内连接与Sqlite中的其他表?

我的查询:

DELETE a FROM TR_ContactResultRecord  a
INNER JOIN TR_Case  b on (a.FireStationCode=b.FireStationCode and a.CaseNo=b.CaseCode )
WHERE b.Update_DateTime <=20140628134416
Run Code Online (Sandbox Code Playgroud)

它显示错误: [Err] 1 - near "a": syntax error

如何删除表内连接与Sqlite中的其他表?

sqlite

22
推荐指数
2
解决办法
1万
查看次数

标签 统计

postgresql ×1

sql ×1

sqlite ×1