Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- phpMyAdmin SQL Dump
- -- version 2.11.9.5
- -- http://www.phpmyadmin.net
- --
- -- Host: localhost
- -- Generation Time: Jul 18, 2009 at 01:47 PM
- -- Server version: 5.0.81
- -- PHP Version: 5.2.9
- SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO";
- /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
- /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
- /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
- /*!40101 SET NAMES utf8 */;
- -- --------------------------------------------------------
- --
- -- Table structure for table `customers`
- --
- CREATE TABLE IF NOT EXISTS `customers` (
- `serial` int(11) NOT NULL auto_increment,
- `name` varchar(20) collate latin1_general_ci NOT NULL,
- `email` varchar(80) collate latin1_general_ci NOT NULL,
- `address` varchar(80) collate latin1_general_ci NOT NULL,
- `phone` varchar(20) collate latin1_general_ci NOT NULL,
- PRIMARY KEY (`serial`)
- ) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_general_ci AUTO_INCREMENT=1 ;
- --
- -- Dumping data for table `customers`
- --
- -- --------------------------------------------------------
- --
- -- Table structure for table `orders`
- --
- CREATE TABLE IF NOT EXISTS `orders` (
- `serial` int(11) NOT NULL auto_increment,
- `date` date NOT NULL,
- `customerid` int(11) NOT NULL,
- PRIMARY KEY (`serial`)
- ) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_general_ci AUTO_INCREMENT=1 ;
- --
- -- Dumping data for table `orders`
- --
- -- --------------------------------------------------------
- --
- -- Table structure for table `order_detail`
- --
- CREATE TABLE IF NOT EXISTS `order_detail` (
- `orderid` int(11) NOT NULL,
- `productid` int(11) NOT NULL,
- `quantity` int(11) NOT NULL,
- `price` float NOT NULL
- ) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_general_ci;
- --
- -- Dumping data for table `order_detail`
- --
- -- --------------------------------------------------------
- --
- -- Table structure for table `products`
- --
- CREATE TABLE IF NOT EXISTS `products` (
- `serial` int(11) NOT NULL auto_increment,
- `name` varchar(20) collate latin1_general_ci NOT NULL,
- `description` varchar(255) collate latin1_general_ci NOT NULL,
- `price` float NOT NULL,
- `picture` varchar(80) collate latin1_general_ci NOT NULL,
- PRIMARY KEY (`serial`)
- ) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_general_ci AUTO_INCREMENT=7 ;
- --
- -- Dumping data for table `products`
- --
- INSERT INTO `products` (`serial`, `name`, `description`, `price`, `picture`) VALUES
- (1, 'View Sonic LCD', '19" View Sonic Black LCD, with 10 months warranty', 250, 'images/lcd.jpg'),
- (2, 'IBM CDROM Drive', 'IBM CDROM Drive', 80, 'images/cdrom-drive.jpg'),
- (3, 'Laptop Charger', 'Dell Laptop Charger with 6 months warranty', 50, 'images/charger.jpg'),
- (4, 'Seagate Hard Drive', '80 GB Seagate Hard Drive in 10 months warranty', 40, 'images/hard-drive.jpg'),
- (5, 'Atech Mouse', 'Black colored laser mouse. No warranty', 5, 'images/mouse.jpg'),
- (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