所以,这是我的查询,但它不起作用:(SELECT TAB1.idnode FROM TABLE2 as TAB2, TABLE1as TAB1 where TAB2.idnode = TAB1.idnode and TAB1.idattribute = 109)
我得到这个错误:您不能在FROM子句中为update指定目标表'
我使用LEAD让查询检查以下记录,我只是不知道如何将DELETEFROM和LEAD组合在一起。我曾尝试使用此查询,但未成功: DELETEFROM SALES TRX_ID, LINE_ID, LEAD (T1.STS, 1, 0) OVER (PARTITION BY T1.TRX_ID ORDER BY T1.LINE_ID) NEXT_STS
FROM SALES_TRANSACTIO
is java.lang.IllegalArgumentException: org.hibernate.QueryException: query must begin with SELECT or FROM: delete [delete obj com.ocimum.btree.mw.core.objecttypes.profile.entity.ProfileEntity obj]
org.springframework.web.servlet.FrameworkServlet.processRequest