我尝试从只有1个查询的两个表中删除。
我试过这些:
Dim cq As String = "delete c.*, sb.* from Table1 c
left join Table2 sb on c.ID = sb.OrderID
where c.ID=" & txtID2.Text & ""
但是我得到" 记录被删除。"
Dim cq As String = "delete t1,t2 from Table1 as t1
join Table2 as t2 on t2.OrderID = t1.ID
where ID=" & txtID2.Text & ""
但是我在from子句中得到了#34; 语法错误。"
请修改我的代码或教我这个。我非常感激。