2009-10-30から1日間の記事一覧
MySQL系で以下の update文を実行して驚いた!table xxxxx pkey col1 col2 1 aaaaa ccccc 上記のようなテーブルにデータがある場合に以下のSQLを実行すると update xxxxx set col2 = col1 ,col1 = 'bbbbb' where pkey = 1 ; 以下のように更新される pkey col1…
MySQL系で以下の update文を実行して驚いた!table xxxxx pkey col1 col2 1 aaaaa ccccc 上記のようなテーブルにデータがある場合に以下のSQLを実行すると update xxxxx set col2 = col1 ,col1 = 'bbbbb' where pkey = 1 ; 以下のように更新される pkey col1…