mysql You can't specify target table for update in FROM clause解决方法出现这个错误的原因是不能在同一个sql语句中,先select同一个表的某些值,然后再update这个表. <pre>mysql> update message set content='Hello World' where id in(select min(id) from message group by uid);ERROR 1093 (HY000):…
准备: 2.1.环境 MySQL mysql> SHOW VARIABLES LIKE "%version%"; +-------------------------+------------------------------+ | Variable_name | Value | +-------------------------+------------------------------+ | | | version_comment | MySQL Community S…