Advertisement
Guest User

Untitled

a guest
Jan 18th, 2020
110
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
MySQL 0.72 KB | None | 0 0
  1. CREATE TABLE `people`(
  2. `id` INT AUTO_INCREMENT PRIMARY KEY,
  3. `name` VARCHAR(200) NOT NULL,
  4. `picture` MEDIUMBLOB DEFAULT NULL,
  5. `height` DOUBLE PRECISION(10,2) DEFAULT NULL,
  6. `weight` DOUBLE PRECISION(10,2) DEFAULT NULL,
  7. `gender` ENUM('m','f') NOT NULL,
  8. `birthdate` DATE NOT NULL,
  9. `biography` TEXT DEFAULT NULL
  10. );
  11.  
  12. INSERT INTO `people`(`name`, `height`, `weight`, `gender`, `birthdate`,`biography`)
  13. VALUES
  14. ('Ivan', 1.70, 71.56, 'm', '1998-12-25', 'Nice person!'),
  15. ('Georgi', 1.75, 71.886, 'm', '1998-12-25', 'Nice person da!'),
  16. ('Peter', 1.807, 79.567, 'f', '1998-12-25', 'Nice person dada!'),
  17. ('Stefan', 1.855, 98.586, 'f', '1998-12-25', 'Nice person dane!'),
  18. ('Dimitar', 1.905, 81.565, 'm', '1998-12-25', 'Nice person nedar!');
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement