delete from info join user where info.userid user.id在sql2000内执行的时候提示在关键词join附近语法错误.执行一楼代码,提示where附近语法错误

来源:学生作业帮助网 编辑:作业帮 时间:2024/05/05 20:40:55

delete from info join user where info.userid user.id
在sql2000内执行的时候提示
在关键词join附近语法错误.
执行一楼代码,提示where附近语法错误

没看懂楼主的意思!
是想这样吗?
DELETE FROM info WHERE userid not in (SELECT id FROM user)