SQL DELETE 在 PHPmyAdmin 中失败
SQL DELETE 在 PHPmyAdmin 中失败。无法弄清楚为什么;是因为 LEFT OUTER JOIN 吗?
SELECT *
FROM `User`
LEFT OUTER JOIN `freshersdata` ON `User`.`username`=`freshersdata`.`username`
WHERE (`freshersdata`.`username` IS null)
AND (`User`.`Persistent`!=1)
此 SQL 查询失败并显示 (#1064 - You had an error in your SQL syntax;) 消息,但使用 SELECT 而不是删除可以完美工作,这是为什么?
SQL DELETE falling over in PHPmyAdmin. Can't work out why; is it because of LEFT OUTER JOIN?
SELECT *
FROM `User`
LEFT OUTER JOIN `freshersdata` ON `User`.`username`=`freshersdata`.`username`
WHERE (`freshersdata`.`username` IS null)
AND (`User`.`Persistent`!=1)
This SQL query is falling over with ( #1064 - You have an error in your SQL syntax; ) message but works perfecly with a SELECT instead of a delete, why is this?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您必须指定要从哪个表中删除:
例如从用户中:
You have to specify from which table you want to delete:
For example from User: