mysql5.*,为什么这么写有语法错误了? 删除的时候, DELETE FROM `file` f WHERE f.fid = 126 AND f.secret = 'a7c970007f0b'; 有语法错误,而换成 DELETE FROM `file` WHERE fid = 126 AND secret = 'a7c970007f0b'; 就可以了。 查询的时候, SELECT * FROM `file` f WHERE f.fid = 126 AND f.secret = 'a7c970007f0b'; 和 SELECT * FROM `file` WHERE fid = 126 AND secret = 'a7c970007f0b'; 都没有问题的。 为什么删除的时候那么写不行呢?
------解决方案-------------------- DELETE f FROM `file` f WHERE f.fid = 126 AND f.secret = 'a7c970007f0b';
------解决方案--------------------