Advertisement
FamiHug

fbl.sql

May 5th, 2012
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
MySQL 1.25 KB | None | 0 0
  1. -- Lưu thành file abc.sql rồi tạo 1 db mới trong phpmyadmin (hoặc sqlserver) import file này vào
  2. -- phpMyAdmin SQL Dump
  3. -- version 3.3.9
  4. -- http://www.phpmyadmin.net
  5. --
  6. -- Host: localhost
  7. -- Generation Time: May 05, 2012 at 03:24 PM
  8. -- Server version: 5.5.8
  9. -- PHP Version: 5.3.5
  10.  
  11. SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO";
  12.  
  13.  
  14. /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
  15. /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
  16. /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
  17. /*!40101 SET NAMES utf8 */;
  18.  
  19. --
  20. -- Database: `FootballLeague`
  21. --
  22.  
  23. -- --------------------------------------------------------
  24.  
  25. --
  26. -- Table structure for table `matches`
  27. --
  28.  
  29. CREATE TABLE IF NOT EXISTS `matches` (
  30.   `id` int(11) NOT NULL AUTO_INCREMENT,
  31.   `homeTeamId` int(11) NOT NULL,
  32.   `guessTeamId` int(11) NOT NULL,
  33.   PRIMARY KEY (`id`)
  34. ) ENGINE=InnoDB  DEFAULT CHARSET=utf8 AUTO_INCREMENT=6 ;
  35.  
  36.  
  37. -- --------------------------------------------------------
  38.  
  39. --
  40. -- Table structure for table `teams`
  41. --
  42.  
  43. CREATE TABLE IF NOT EXISTS `teams` (
  44.   `id` int(11) NOT NULL AUTO_INCREMENT,
  45.   `name` varchar(128) NOT NULL,
  46.  
  47.   PRIMARY KEY (`id`)
  48. ) ENGINE=InnoDB  DEFAULT CHARSET=utf8 AUTO_INCREMENT=11 ;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement