I want to update a table by updating the id of a row (id is auto increment). this is the code:
update question_bank set id=1 where id=(select min(id) from question_bank where id>=1);
but I received this error:
ERROR 1093 (HY000): You can't specify target table 'question_bank' for update in FROM clause
What should I do? Thanks :)