Advertisement
xlujiax

repaso

Sep 28th, 2018
156
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
MySQL 0.65 KB | None | 0 0
  1. Create user Usuario
  2. identified by 123
  3. default tablespace Transfer
  4. temporary tablespace temp;
  5.  
  6. grant resource, connect, create view to Usuario;
  7.  
  8. Create table Usuario
  9. (
  10. nick         varchar2(30)   primary key,
  11. nombre       varchar2 (30),
  12. clave         varchar2 (10),
  13. email         nchar(30)
  14. );
  15.  
  16. Create table Comentario
  17. (
  18.  id int primary key,
  19.  texto varchar2(30),
  20.  fecha date,
  21.  nick varchar2(30) references Usuario
  22. );
  23.  
  24. Create table Foto
  25. (
  26.   archivo  varchar2(30)   primary key,
  27.   descripcion varchar2(30)
  28. );
  29.  
  30. Create table Aparicion
  31. (
  32. nick         varchar2(30)   references Usuario,
  33. archivo  varchar2(30) references Foto,
  34. coord nchar
  35. );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement