Advertisement
Guest User

Untitled

a guest
Mar 17th, 2019
107
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.99 KB | None | 0 0
  1. --
  2. -- Database: `refrescos`
  3. --
  4.  
  5. -- --------------------------------------------------------
  6.  
  7. --
  8. -- Table structure for table `usuario`
  9. --
  10.  
  11. CREATE TABLE usuario (
  12. idUsuario int(11) NOT NULL,
  13. nombres varchar(64) NOT NULL,
  14. apellidos varchar(128) NOT NULL,
  15. rol varchar(22) DEFAULT NULL,
  16. fechaNacimiento date DEFAULT NULL,
  17. email varchar(128) NOT NULL
  18. );
  19.  
  20. --
  21. -- Dumping data for table usuario
  22. --
  23.  
  24. INSERT INTO usuario (idUsuario, nombres, apellidos, rol, fechaNacimiento, email) VALUES
  25. (1, 'Juan', 'Perez', 'Administrador', '1998-06-26', 'juan.perez@hotmail.com'),
  26. (2, 'Raul', 'Robles', 'Usuario', '1993-06-21', 'raul.robles@gmail.com'),
  27. (5, 'Juan', 'Soliz', 'Editor', '1970-05-16', 'juan.soliz@mail.com');
  28.  
  29. --
  30. -- Indexes for dumped tables
  31. --
  32.  
  33. --
  34. -- Indexes for table usuario
  35. --
  36. ALTER TABLE usuario
  37. ADD PRIMARY KEY (idUsuario);
  38.  
  39. --
  40. -- AUTO_INCREMENT for dumped tables
  41. --
  42.  
  43. --
  44. -- AUTO_INCREMENT for table `usuario`
  45. --
  46. ALTER TABLE usuario
  47. MODIFY idUsuario int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement