2009-01-14から1日間の記事一覧
PostgreSQLでcheckを使ってカラムに入る値を制限する方法があるけどMySQLで同じような事をやってみるMySQLの標準で CREATE TABLE t1 ( id integer not null primary key, c1 tinyint(1) unsigned not null check(c1 between 1 and 2) )みたいな事が書けるん…
PostgreSQLでcheckを使ってカラムに入る値を制限する方法があるけどMySQLで同じような事をやってみるMySQLの標準で CREATE TABLE t1 ( id integer not null primary key, c1 tinyint(1) unsigned not null check(c1 between 1 and 2) )みたいな事が書けるん…