如果我写这么一条语句
delete SYS_Authorith from SYS_RoleButtons a left join SYS_Authorith b on b.moduleid=a.moduleid and b.buttonuse=a.buttonuse
where a.buttonid='30'
有什么不妥的地方吗?
...全文
391打赏收藏
都说删除,修改语句不能有联表。。这。。
如果我写这么一条语句 delete SYS_Authorith from SYS_RoleButtons a left join SYS_Authorith b on b.moduleid=a.moduleid and b.buttonuse=a.buttonuse where a.buttonid='30' 有什么不妥的地方吗?
很不妥
Delete From SYS_Authorith Where moduleid In (Select moduleid From SYS_RoleButtons a left join SYS_Authorith b on b.moduleid=a.moduleid and b.buttonuse=a.buttonuse Where a.buttonid='30')