Yurttas/PL/DBL/postgres/F/01/Company-A/Project-cre.sql

Revision as of 00:41, 5 November 2013 by MassBot1 (talk | contribs) (Created page with "<syntaxhighlight lang="sql" line start="1" enclose="div">β†’β€ŽREM REM REM Project-cre.sql REM REM: SELECT current_schema(); SET search_path to "companya"; CREATE TABLE Proje...")
(diff) ← Older revision | Latest revision (diff) | Newer revision β†’ (diff)
 1/*
 2REM
 3REM
 4REM Project-cre.sql
 5REM
 6REM
 7*/
 8
 9SELECT current_schema();
10SET search_path to "companya";
11
12CREATE TABLE Project(pname VARCHAR(16) NOT NULL,
13                     pnumber INTEGER NOT NULL,
14                     plocation VARCHAR(24),
15                     dnum INTEGER NOT NULL,
16         PRIMARY KEY(pnumber),
17         FOREIGN KEY(dnum) REFERENCES Department(dnumber));