2007-10-24から1日間の記事一覧
こういうデータベースを作って CREATE TABLE table1( id integer PRIMARY KEY, data1 text ); CREATE TABLE table2( table1_id integer REFERENCES table1(id) PRIMARY KEY, data2 text ); INSERT INTO table1 VALUES(1, '1-1'); INSERT INTO table1 VALUES(…
こういうデータベースを作って CREATE TABLE table1( id integer PRIMARY KEY, data1 text ); CREATE TABLE table2( table1_id integer REFERENCES table1(id) PRIMARY KEY, data2 text ); INSERT INTO table1 VALUES(1, '1-1'); INSERT INTO table1 VALUES(…