Advertisement
Guest User

Untitled

a guest
Jan 19th, 2014
184
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.12 KB | None | 0 0
  1. -- phpMyAdmin SQL Dump
  2. -- version 2.11.9.5
  3. -- http://www.phpmyadmin.net
  4. --
  5. -- Host: localhost
  6. -- Generation Time: Jul 18, 2009 at 01:47 PM
  7. -- Server version: 5.0.81
  8. -- PHP Version: 5.2.9
  9.  
  10. SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO";
  11.  
  12.  
  13. /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
  14. /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
  15. /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
  16. /*!40101 SET NAMES utf8 */;
  17.  
  18. -- --------------------------------------------------------
  19.  
  20. --
  21. -- Table structure for table `customers`
  22. --
  23.  
  24. CREATE TABLE IF NOT EXISTS `customers` (
  25. `serial` int(11) NOT NULL auto_increment,
  26. `name` varchar(20) collate latin1_general_ci NOT NULL,
  27. `email` varchar(80) collate latin1_general_ci NOT NULL,
  28. `address` varchar(80) collate latin1_general_ci NOT NULL,
  29. `phone` varchar(20) collate latin1_general_ci NOT NULL,
  30. PRIMARY KEY (`serial`)
  31. ) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_general_ci AUTO_INCREMENT=1 ;
  32.  
  33. --
  34. -- Dumping data for table `customers`
  35. --
  36.  
  37.  
  38. -- --------------------------------------------------------
  39.  
  40. --
  41. -- Table structure for table `orders`
  42. --
  43.  
  44. CREATE TABLE IF NOT EXISTS `orders` (
  45. `serial` int(11) NOT NULL auto_increment,
  46. `date` date NOT NULL,
  47. `customerid` int(11) NOT NULL,
  48. PRIMARY KEY (`serial`)
  49. ) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_general_ci AUTO_INCREMENT=1 ;
  50.  
  51. --
  52. -- Dumping data for table `orders`
  53. --
  54.  
  55.  
  56. -- --------------------------------------------------------
  57.  
  58. --
  59. -- Table structure for table `order_detail`
  60. --
  61.  
  62. CREATE TABLE IF NOT EXISTS `order_detail` (
  63. `orderid` int(11) NOT NULL,
  64. `productid` int(11) NOT NULL,
  65. `quantity` int(11) NOT NULL,
  66. `price` float NOT NULL
  67. ) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_general_ci;
  68.  
  69. --
  70. -- Dumping data for table `order_detail`
  71. --
  72.  
  73.  
  74. -- --------------------------------------------------------
  75.  
  76. --
  77. -- Table structure for table `products`
  78. --
  79.  
  80. CREATE TABLE IF NOT EXISTS `products` (
  81. `serial` int(11) NOT NULL auto_increment,
  82. `name` varchar(20) collate latin1_general_ci NOT NULL,
  83. `description` varchar(255) collate latin1_general_ci NOT NULL,
  84. `price` float NOT NULL,
  85. `picture` varchar(80) collate latin1_general_ci NOT NULL,
  86. PRIMARY KEY (`serial`)
  87. ) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_general_ci AUTO_INCREMENT=7 ;
  88.  
  89. --
  90. -- Dumping data for table `products`
  91. --
  92.  
  93. INSERT INTO `products` (`serial`, `name`, `description`, `price`, `picture`) VALUES
  94. (1, 'View Sonic LCD', '19" View Sonic Black LCD, with 10 months warranty', 250, 'images/lcd.jpg'),
  95. (2, 'IBM CDROM Drive', 'IBM CDROM Drive', 80, 'images/cdrom-drive.jpg'),
  96. (3, 'Laptop Charger', 'Dell Laptop Charger with 6 months warranty', 50, 'images/charger.jpg'),
  97. (4, 'Seagate Hard Drive', '80 GB Seagate Hard Drive in 10 months warranty', 40, 'images/hard-drive.jpg'),
  98. (5, 'Atech Mouse', 'Black colored laser mouse. No warranty', 5, 'images/mouse.jpg'),
  99. (6, 'Nokia 5800', 'Nokia 5800 XpressMusic is a mobile device with 3.2" widescreen display brings photos, video clips and web content to life', 299, 'images/mobile.jpg');
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement