Guest User

Untitled

a guest
May 25th, 2018
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.48 KB | None | 0 0
  1. Use teste
  2. ------------------------------------------------
  3. CREATE TABLE Hostipal (
  4. ID int NOT NULL,
  5. Nome nvarchar(30) NOT NULL,
  6. CONSTRAINT PK_ID PRIMARY KEY (ID),
  7. );
  8. ------------------------------------------------
  9. CREATE TABLE Paciente (
  10. PacienteId int NOT NULL,
  11. Nome nvarchar(30) NOT NULL,
  12. ID int NOT NULL,
  13. CONSTRAINT PK_PacienteId PRIMARY KEY (PacienteId),
  14. CONSTRAINT FK_ID FOREIGN KEY (ID)
  15. REFERENCES Hospital(ID)
  16. );
Add Comment
Please, Sign In to add comment