CREATE TABLE Indeks (
broj VARCHAR2 ( 10 ) NOT NULL,
JMBG VARCHAR2 ( 13 ) NOT NULL,
ime VARCHAR2 ( 30 ) NOT NULL,
prezime VARCHAR2 ( 30 ) NOT NULL,
imeOca VARCHAR2 ( 30 ) NOT NULL,
datumRodjenja DATE,
datumUpisa DATE NOT NULL,
pol NUMBER ( 5 ),
sfrSedisteFakultetaMesto NUMBER ( 5 ),
sfrOpstinaRodjenja NUMBER ( 5 ),
sfrMestoRodjenja NUMBER ( 5 ),
sfrSprema NUMBER ( 5 ),
sfrFakultet NUMBER ( 5 ) NOT NULL,
email VARCHAR2 ( 80 ),
sfrDrzava NUMBER ( 5 ),
status NUMBER ( 2 ),
sfrRokPrijemni NUMBER ( 5 ),
sfrPr VARCHAR2 ( 20 ),
CONSTRAINT PK_Indeks754 PRIMARY KEY (broj)
)
CREATE TABLE Lozinka (
password VARCHAR2 ( 15 ) NOT NULL,
broj VARCHAR2 ( 10 ) NOT NULL,
CONSTRAINT PK_Lozinka1076 PRIMARY KEY (broj)
)
ALTER TABLE Lozinka ADD ( CONSTRAINT FK_Lozinka1748 FOREIGN KEY (broj) REFERENCES Indeks (broj))
Could somebody write me a mapping file for Lozinka?[/img]
|