helen's blog

ずっとおもしろいことしてたいな。

2016-05-02から1日間の記事一覧

ついにトランザクションできたのにYou can't specify target tableされた

You can't specify target table You can't specify target table 'x' for update in FROM clause UPDATE t1 SET column2 = (SELECT MAX(column1) FROM t1);updateの対象とサブクエリのfromに同じテーブルが入ってるとエラーになるらしい MySQL :: MySQL 5.6…