我已尝试过该网站提供的每种方式,以使此查询正常运行,并且每次都有错误。
我有两张桌子:车道和销售。
这只是我尝试过的一种语法:
delete lane from lane
join sale on lane.id=sale.id
where sale.name='MySale'
and lane.number=5
此特定查询给出了错误:令牌通道无效。有效令牌:FROM
答案 0 :(得分:0)
试
delete from lane l
where l.salehid# in (select a.salehid# from sale a where a.name='MySale' )
and l.number=5