diff options
author | Wilrik de Loose <wilrik@wilrik.nl> | 2008-05-08 19:07:50 (GMT) |
---|---|---|
committer | Wilrik de Loose <wilrik@wilrik.nl> | 2008-05-08 19:07:50 (GMT) |
commit | dc6caf529031dba2dd595b64ee008ffda39737b6 (patch) | |
tree | 9026623a73886e313097561b4bfc09f9cc77b025 /db_demo/sql/tables/cr_tbl_test.sql | |
parent | 4c0c2685a6d564c9a6170b8a56c873104046a832 (diff) | |
download | 2iv55-dc6caf529031dba2dd595b64ee008ffda39737b6.zip 2iv55-dc6caf529031dba2dd595b64ee008ffda39737b6.tar.gz 2iv55-dc6caf529031dba2dd595b64ee008ffda39737b6.tar.bz2 |
Tabel structuur aangemaakt
Diffstat (limited to 'db_demo/sql/tables/cr_tbl_test.sql')
-rw-r--r-- | db_demo/sql/tables/cr_tbl_test.sql | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/db_demo/sql/tables/cr_tbl_test.sql b/db_demo/sql/tables/cr_tbl_test.sql new file mode 100644 index 0000000..15e94d0 --- /dev/null +++ b/db_demo/sql/tables/cr_tbl_test.sql @@ -0,0 +1,7 @@ +CREATE SEQUENCE seq_test START 1;
+
+CREATE TABLE tbl_test (
+ key integer PRIMARY KEY, -- primary key
+ personid integer NOT NULL REFERENCES tbl_person(key), -- person foreign key
+ gametypeid integer NOT NULL REFERENCES const_gametype(key) -- gametype foreign key
+);
\ No newline at end of file |