by shigemk2

当面は技術的なことしか書かない

postgresql if

postgresqlにifはないっぽいのでcase whenなどを使う

https://www.postgresql.jp/document/9.4/html/functions-conditional.html