Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --
- -- Table structure for table `orders`
- --
- CREATE TABLE `orders` (
- `product_id` int(11) NOT NULL,
- `total_orders` int(11) NOT NULL DEFAULT '0'
- ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
- --
- -- Dumping data for table `orders`
- --
- INSERT INTO `orders` (`product_id`, `total_orders`) VALUES
- (1, 20),
- (3, 10),
- (4, 10);
- -- --------------------------------------------------------
- --
- -- Table structure for table `products`
- --
- CREATE TABLE `products` (
- `product_id` int(11) NOT NULL,
- `product_name` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
- `product_type` tinyint(4) NOT NULL,
- `product_status` tinyint(4) NOT NULL
- ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
- --
- -- Dumping data for table `products`
- --
- INSERT INTO `products` (`product_id`, `product_name`, `product_type`, `product_status`) VALUES
- (1, 'apple', 1, 1),
- (2, 'orange', 1, 1),
- (3, 'car', 2, 1),
- (4, 'dress', 3, 0);
- COMMIT;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement