とかくこの世は謎だらけ :-)
【constraint】
【primary key と UNIQUE】
- http://www.techscore.com/tech/sql/03_03.html
- http://www.postgresql.jp/document/pg721doc/user/keys.html
【チューニングとexplain】
- http://homepage2.nifty.com/sak/w_sak3/doc/sysbrd/sq_tn02.htm
- http://dev.mysql.com/doc/mysql/ja/EXPLAIN.html
【like concat('%', hoge)とか出てきてちょっと意図がわからんかったので】