Code:
# phpMyAdmin MySQL-Dump
# version 2.2.0
# http://phpwizard.net/phpMyAdmin/
# http://phpmyadmin.sourceforge.net/ (download page)
#
# Host: localhost
# Generation Time: December 17, 2001, 12:17 am
# Server version: 3.23.46
# PHP Version: 4.0.6
# Database : `test2`
# --------------------------------------------------------
#
# Table structure for table `eats`
#
DROP TABLE IF EXISTS eats;
CREATE TABLE eats (
PersonId tinyint(3) NOT NULL,
FruitId tinyint(3) NOT NULL,
PRIMARY KEY (PersonId,FruitId)
) TYPE=MyISAM;
#
# Dumping data for table `eats`
#
INSERT INTO eats VALUES (1,1),
(1,3),
(2,3),
(3,1),
(3,2),
(3,3);
# --------------------------------------------------------
#
# Table structure for table `fruits`
#
DROP TABLE IF EXISTS fruits;
CREATE TABLE fruits (
FruitId tinyint(3) NOT NULL,
Fruit text,
PRIMARY KEY (FruitId)
) TYPE=MyISAM;
#
# Dumping data for table `fruits`
#
INSERT INTO fruits VALUES (1,'Apple'),
(2,'Orange'),
(3,'Strawberry');
# --------------------------------------------------------
#
# Table structure for table `movies`
#
DROP TABLE IF EXISTS movies;
CREATE TABLE movies (
MovieId tinyint(3) NOT NULL,
Movie text,
PRIMARY KEY (MovieId)
) TYPE=MyISAM;
#
# Dumping data for table `movies`
#
INSERT INTO movies VALUES (1,'Matrix'),
(2,'Harry Potter'),
(3,'Monster Inc.');
# --------------------------------------------------------
#
# Table structure for table `person`
#
DROP TABLE IF EXISTS person;
CREATE TABLE person (
PersonId int(3) NOT NULL,
Name text,
PRIMARY KEY (PersonId)
) TYPE=MyISAM;
#
# Dumping data for table `person`
#
INSERT INTO person VALUES (1,'John'),
(2,'Mary'),
(3,'Susan');
# --------------------------------------------------------
#
# Table structure for table `watches`
#
DROP TABLE IF EXISTS watches;
CREATE TABLE watches (
PersonId tinyint(3) NOT NULL,
MovieId tinyint(3) NOT NULL,
PRIMARY KEY (PersonId,MovieId)
) TYPE=MyISAM;
#
# Dumping data for table `watches`
#
INSERT INTO watches VALUES (1,2),
(2,1),
(2,2),
(2,3),
(3,2),
(3,3);
Bookmarks