memorandum

IT技術の習得を記録します

2016-12-03から1日間の記事一覧

巨大ファイルを取り込むとき

sql

set global max_allowed_packet = 16777216

mysqlの基礎

sql

update update people set birth_date = '1987-11-27' where id = 10096; # updateする テーブル名 set 変更内容 where 変更箇所 # peopleテーブルのidが10096のbirth_dateを'1987-11-27'にアップデートする delete delete from テーブル名 where 該当箇所; …

コミットをまとめる

git

git rebase -i --keep-empty --autosquash $(git show-branch --merge-base master HEAD) vimに以下のような状態で開かれる pick 05eb1e4 test2rb pick 7dc17cc add test.rb # Rebase 7802bc5..7dc17cc onto 7802bc5 (2 commands) # # Commands: # p, pick =…