2015-10-01から1ヶ月間の記事一覧
たとえばこういう最大の値をもつレコードだけ+1したいというとき update table_001 set col_01=col_01+1 where col_01 = ( select max(col_01) from table_001 ); ERROR 1093 (HY000): You can't specify target table ’table_001' for update in FROM claus…
たとえばこういう最大の値をもつレコードだけ+1したいというとき update table_001 set col_01=col_01+1 where col_01 = ( select max(col_01) from table_001 ); ERROR 1093 (HY000): You can't specify target table ’table_001' for update in FROM claus…