我明白为什么这是有问题的,但似乎不能像这里的其他人那样解决问题。这是我想要做的: SELECT (MAX(ticket_number)+1) FROM tickets给我:You can't specify target table 'tickets' for update in FROM clause
我在windows上的mysql客户端shell中运行了这个程序。我不明白问题出在哪里。我知道delete from PageInfo where id是对的。我知道子查询是正确的。如何删除子查询返回的所有ids?mysql> delete from PageInfo where id in ( select max(id) from PageInfo where pid
>=2758000 AND pid<2758100