Last active
September 20, 2016 00:46
-
-
Save dbarrerap/6067518 to your computer and use it in GitHub Desktop.
SQL for tutorial
This file contains 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
-- phpMyAdmin SQL Dump | |
-- version 3.5.1 | |
-- http://www.phpmyadmin.net | |
-- | |
-- Host: localhost | |
-- Generation Time: Jun 15, 2013 at 10:07 PM | |
-- Server version: 5.5.24-log | |
-- PHP Version: 5.3.13 | |
SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO"; | |
SET time_zone = "+00:00"; | |
/*!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 */; | |
-- | |
-- Database: `MyTestDatabase` | |
-- | |
-- -------------------------------------------------------- | |
-- | |
-- Table structure for table `users` | |
-- | |
CREATE TABLE IF NOT EXISTS `users` ( | |
`id` int(11) NOT NULL AUTO_INCREMENT, | |
`FirstName` text NOT NULL, | |
`LastName` text NOT NULL, | |
`Age` int(11) NOT NULL, | |
`Points` int(11) NOT NULL, | |
PRIMARY KEY (`id`) | |
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=7 ; | |
-- | |
-- Dumping data for table `users` | |
-- | |
INSERT INTO `users` (`id`, `FirstName`, `LastName`, `Age`, `Points`) VALUES | |
(1, 'John', 'Doe', 25, 61), | |
(2, 'Glen', 'Willis', 55, 3145), | |
(3, 'Helen', 'Cook', 35, 1232), | |
(4, 'Karen', 'Johnson', 20, 6456), | |
(5, 'Bill', 'Cooper', 60, 3856), | |
(6, 'Mary', 'Gomez', 30, 5422); | |
/*!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 */; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment