オープンソースデータベースを加速する「キムラデービー」のブログです。カレー日記を兼ねてます。なお著者は2010-06-01より日本オラクルに在籍していますが、本サイト(ブログ、またはウェブサイト)において示されている見解は、私自身の見解であって、オラクルの見解を必ずしも反映したものではありません。 『指南書』ネタです。(1-1: CASE式のススメ) Webでは、以下で参照できます。 CASE式のススメ: 3.CHECK制約で二つの列の条件関係を定義する(リレーショナル・データベースの世界) CASE式はCHECK制約に使える、という話があるのですが、MySQLはCHECK制約がサポートされていません。他DBからの移植に便利なように、エラーはでませんが、実際には定義されず、無視されます。 mysql> CREATE TABLE Personnel( -> name varchar(20),