-- MySQL dump 10.7 -- -- Host: localhost Database: pg -- ------------------------------------------------------ -- Server version 4.1.3-beta-standard /*!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 */; /*!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" */; -- -- Current Database: `pg` -- CREATE DATABASE /*!32312 IF NOT EXISTS*/ `pg`; USE `pg`; -- -- Table structure for table `books` -- DROP TABLE IF EXISTS `books`; CREATE TABLE `books` ( `title` varchar(64) NOT NULL default '', `lastname` varchar(24) default NULL, `firstname` varchar(24) default NULL, `pubyear` int(11) default NULL, `url` varchar(128) default NULL, `publisherid` int(11) default NULL ) ENGINE=MyISAM DEFAULT CHARSET=latin1; -- -- Dumping data for table `books` -- /*!40000 ALTER TABLE `books` DISABLE KEYS */; LOCK TABLES `books` WRITE; INSERT INTO `books` VALUES ('Perl Cookbook','Christiansen','Tom',2003,'http://www.ora.com',1),('Programming Perl','Wall','Larry',2000,'http://www.perl.org',1),('Another Perl','','Newby',NULL,NULL,NULL); UNLOCK TABLES; /*!40000 ALTER TABLE `books` ENABLE KEYS */; -- -- Table structure for table `publisher` -- DROP TABLE IF EXISTS `publisher`; CREATE TABLE `publisher` ( `publisherid` int(11) NOT NULL auto_increment, `publishercity` varchar(64) default NULL, `publishercountry` varchar(32) default NULL, PRIMARY KEY (`publisherid`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1; -- -- Dumping data for table `publisher` -- /*!40000 ALTER TABLE `publisher` DISABLE KEYS */; LOCK TABLES `publisher` WRITE; INSERT INTO `publisher` VALUES (1,'Sebastopol, CA','USA'),(2,'London','UK'),(3,'New York','USA'); UNLOCK TABLES; /*!40000 ALTER TABLE `publisher` ENABLE KEYS */; /*!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 */;