Created
July 13, 2011 16:58
-
-
Save paulbarbu/1080743 to your computer and use it in GitHub Desktop.
dump
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- MySQL dump 10.13 Distrib 5.5.14, for Linux (i686) | |
-- | |
-- Host: localhost Database: men_norm | |
-- ------------------------------------------------------ | |
-- Server version 5.5.14-log | |
/*!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 */; | |
-- | |
-- Table structure for table `owners` | |
-- | |
DROP TABLE IF EXISTS `owners`; | |
/*!40101 SET @saved_cs_client = @@character_set_client */; | |
/*!40101 SET character_set_client = utf8 */; | |
CREATE TABLE `owners` ( | |
`id` int(11) DEFAULT NULL, | |
`name` varchar(30) DEFAULT NULL | |
) ENGINE=InnoDB DEFAULT CHARSET=utf8; | |
/*!40101 SET character_set_client = @saved_cs_client */; | |
-- | |
-- Dumping data for table `owners` | |
-- | |
LOCK TABLES `owners` WRITE; | |
/*!40000 ALTER TABLE `owners` DISABLE KEYS */; | |
INSERT INTO `owners` VALUES (1,'paul'),(2,'rem'),(3,'flav'); | |
/*!40000 ALTER TABLE `owners` ENABLE KEYS */; | |
UNLOCK TABLES; | |
-- | |
-- Table structure for table `pets` | |
-- | |
DROP TABLE IF EXISTS `pets`; | |
/*!40101 SET @saved_cs_client = @@character_set_client */; | |
/*!40101 SET character_set_client = utf8 */; | |
CREATE TABLE `pets` ( | |
`id` int(11) DEFAULT NULL, | |
`owner_id` int(11) DEFAULT NULL, | |
`name` varchar(30) DEFAULT NULL | |
) ENGINE=InnoDB DEFAULT CHARSET=utf8; | |
/*!40101 SET character_set_client = @saved_cs_client */; | |
-- | |
-- Dumping data for table `pets` | |
-- | |
LOCK TABLES `pets` WRITE; | |
/*!40000 ALTER TABLE `pets` DISABLE KEYS */; | |
INSERT INTO `pets` VALUES (NULL,NULL,NULL),(2,1,'pet_paul'),(1,3,'pet_flav'),(3,2,'pet_rem'); | |
/*!40000 ALTER TABLE `pets` 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 2011-07-13 19:59:05 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mysql> SElECT owners.name, owners.id, pets.name FROM pets, owners WHERE pets.owner_id = 2 AND owners.id = 2; | |
+------+------+---------+ | |
| name | id | name | | |
+------+------+---------+ | |
| rem | 2 | pet_rem | | |
+------+------+---------+ | |
1 row in set (0.00 sec) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment