[sql] Cc

Viewer

  1. CREATE TABLE IF NOT EXISTS `images` (
  2.         `id` INT(11) NOT NULL AUTO_INCREMENT,
  3.         `title` text NOT NULL,
  4.       `description` text NOT NULL,
  5.       `path` text NOT NULL,
  6.       `uploaded_date` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
  7.         PRIMARY KEY (`id`)
  8. ) ENGINE=InnoDB AUTO_INCREMENT=7 DEFAULT CHARSET=utf8;
  9.  
  10. INSERT INTO `images` (`id`, `title`, `description`, `path`, `uploaded_date`) VALUES
  11. (1, 'Abandoned Building', '', 'images/abandoned-building.jpg', '2019-07-16 20:09:26'),
  12. (2, 'Beach', 'Hot summer day at the beach.', 'images/beach.jpg', '2019-07-16 20:10:05'),
  13. (3, 'City', 'A view down at the city.', 'images/city.jpg', '2019-07-16 20:10:45'),
  14. (4, 'Mountain', '', 'images/mountain.jpg', '2019-07-16 20:11:27'),
  15. (5, 'Road', 'Going down the only road I''ve even known.', 'images/road.jpg', '2019-07-16 20:12:00'),
  16. (6, 'Stars', 'A wonderful view of the night sky.', 'images/stars.jpg', '2019-07-16 20:12:39');

Editor

You can edit this paste and save as new:


File Description
  • Cc
  • Paste Code
  • 21 Oct-2020
  • 918 Bytes
You can Share it: