-- MySQL dump 10.13 Distrib 5.5.16, for linux2.6 (x86_64) -- -- Host: 127.0.0.1 Database: pet1 -- ------------------------------------------------------ -- Server version 5.5.28 /*!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 */; /*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */; /*!40103 SET TIME_ZONE='+00:00' */; /*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */; /*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */; /*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */; /*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */; -- -- Current Database: `pet1` -- /*!40000 DROP DATABASE IF EXISTS `pet1`*/; CREATE DATABASE /*!32312 IF NOT EXISTS*/ `pet1` /*!40100 DEFAULT CHARACTER SET latin1 */; USE `pet1`; -- -- Table structure for table `owner` -- DROP TABLE IF EXISTS `owner`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `owner` ( `owner` varchar(20) DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `owner` -- LOCK TABLES `owner` WRITE; /*!40000 ALTER TABLE `owner` DISABLE KEYS */; INSERT INTO `owner` VALUES ('Harold'),('Diane'),('Gwen'); /*!40000 ALTER TABLE `owner` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `pet` -- DROP TABLE IF EXISTS `pet`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `pet` ( `name` varchar(20) DEFAULT NULL, `owner` varchar(20) DEFAULT NULL, `species` varchar(20) DEFAULT NULL, `sex` char(1) DEFAULT NULL, `birth` date DEFAULT NULL, `death` date DEFAULT NULL, `age` int(11) DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `pet` -- LOCK TABLES `pet` WRITE; /*!40000 ALTER TABLE `pet` DISABLE KEYS */; INSERT INTO `pet` VALUES ('Fluffy','Harold','cat','f','1993-02-04',NULL,9),('Buffy','Harold','dog','f','1989-05-13',NULL,5),('Bowser','Diane','dog','m','1979-08-31','1995-07-29',5),('Whistler','Gwen','bird',NULL,'1997-12-09',NULL,5),('Puffball','Diane','hamster','f','1999-03-30',NULL,5); /*!40000 ALTER TABLE `pet` ENABLE KEYS */; UNLOCK TABLES; -- -- Current Database: `pet2` -- /*!40000 DROP DATABASE IF EXISTS `pet2`*/; CREATE DATABASE /*!32312 IF NOT EXISTS*/ `pet2` /*!40100 DEFAULT CHARACTER SET latin1 */; USE `pet2`; -- -- Table structure for table `owner` -- DROP TABLE IF EXISTS `owner`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `owner` ( `owner` varchar(20) DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `owner` -- LOCK TABLES `owner` WRITE; /*!40000 ALTER TABLE `owner` DISABLE KEYS */; INSERT INTO `owner` VALUES ('Benny'),('Gwen'); /*!40000 ALTER TABLE `owner` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `pet` -- DROP TABLE IF EXISTS `pet`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `pet` ( `name` varchar(20) DEFAULT NULL, `owner` varchar(20) DEFAULT NULL, `species` varchar(20) DEFAULT NULL, `sex` char(1) DEFAULT NULL, `birth` date DEFAULT NULL, `death` date DEFAULT NULL, `age` int(11) DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `pet` -- LOCK TABLES `pet` WRITE; /*!40000 ALTER TABLE `pet` DISABLE KEYS */; INSERT INTO `pet` VALUES ('Claws','Gwen','cat','m','1994-03-17',NULL,5),('Fang','Benny','dog','m','1990-08-27',NULL,10),('Chirpy','Gwen','bird','f','1998-09-11',NULL,5),('Slim','Benny','snake','m','1996-04-29',NULL,5); /*!40000 ALTER TABLE `pet` ENABLE KEYS */; UNLOCK TABLES; /*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */; /*!40101 SET SQL_MODE=@OLD_SQL_MODE */; /*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */; /*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */; /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */; /*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */; -- Dump completed on 2012-11-28 17:01:30