Advertisement
Guest User

Untitled

a guest
Dec 17th, 2018
141
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.96 KB | None | 0 0
  1.  
  2. --
  3. -- Table structure for table `orders`
  4. --
  5.  
  6. CREATE TABLE `orders` (
  7. `product_id` int(11) NOT NULL,
  8. `total_orders` int(11) NOT NULL DEFAULT '0'
  9. ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
  10.  
  11. --
  12. -- Dumping data for table `orders`
  13. --
  14.  
  15. INSERT INTO `orders` (`product_id`, `total_orders`) VALUES
  16. (1, 20),
  17. (3, 10),
  18. (4, 10);
  19.  
  20. -- --------------------------------------------------------
  21.  
  22. --
  23. -- Table structure for table `products`
  24. --
  25.  
  26. CREATE TABLE `products` (
  27. `product_id` int(11) NOT NULL,
  28. `product_name` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  29. `product_type` tinyint(4) NOT NULL,
  30. `product_status` tinyint(4) NOT NULL
  31. ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
  32.  
  33. --
  34. -- Dumping data for table `products`
  35. --
  36.  
  37. INSERT INTO `products` (`product_id`, `product_name`, `product_type`, `product_status`) VALUES
  38. (1, 'apple', 1, 1),
  39. (2, 'orange', 1, 1),
  40. (3, 'car', 2, 1),
  41. (4, 'dress', 3, 0);
  42. COMMIT;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement