Recent Posts
None | 3 sec ago
None | 25 sec ago
Bash | 30 sec ago
C++ | 38 sec ago
PHP | 41 sec ago
None | 46 sec ago
None | 48 sec ago
None | 55 sec ago
None | 58 sec ago
None | 1 min ago
Sitereport
Find cool info about any domain on the internet?
visit sitereport
Free Subdomains
Want a pastebin.com sub-domain for your community?
learn more...
What is pastebin?
Pastebin is a website that hosts all your text & code on dedicated servers for easy sharing.
learn more...
Learn a little bit about the new Pastebin.com on our help page. hide message
By stijn leenknegt on the 19th of Jan 2010 10:01:24 PM Download | Raw | Embed | Report
  1. CREATE TABLE gebruikers (
  2.     id integer NOT NULL PRIMARY KEY,
  3.     naam varchar(40) NOT NULL UNIQUE,
  4.     geboortedatum date NOT NULL CHECK(extract(year FROM geboortedatum) >= 1950)
  5. );
  6.  
  7. CREATE TABLE topics(
  8.     id integer NOT NULL PRIMARY KEY,
  9.     gebruiker integer NOT NULL,
  10.     titel varchar(50) NOT NULL,
  11.     topic text NOT NULL,
  12.     geplaatstOp timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  13.     FOREIGN KEY(gebruiker) REFERENCES gebruikers(id)
  14.         ON UPDATE cascade
  15.         ON DELETE restrict
  16. );
Submit a correction or amendment below. Make A New Post
To highlight particular lines, prefix each line with @h@
Syntax highlighting:
Post expiration:
Post exposure:
Name / Title:
Email: