group_concat
GROUP_CONCAT() 連結された文字列を返します
https://dev.mysql.com/doc/refman/5.6/ja/group-by-functions.html
show create table
テーブルの定義を調べる
show create table
undefined method ` ' for がエラーででた場合
全角スペースが半角スペースの代わりに利用されているため、エラーがでている場合がある。
itermでcontrol+rでコマンド履歴を検索する設定方法
このコマンドを打った後に、
brew install peco
.zshrc以下に下記を追記する
function peco-select-history() { local tac if which tac > /dev/null; then tac="tac" else tac="tail -r" fi BUFFER=$(\history -n 1 | eval $tac | awk '!a[$0]++' | peco --query "$LBUFFER") CURSOR=$#BUFFER zle clear-screen } zle -N peco-select-history bindkey '^r' peco-select-history
コマンドUTF8変換
find . -type f -print0 | xargs -0 nkf --overwrite -w -Lu
itermの設定
https://github.com/robbyrussell/oh-my-zsh
Basic Installation
Oh My Zsh is installed by running one of the following commands in your terminal. You can install this via the command-line with either curl or wget.
via curl
sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"