Advertisement
Guest User

Untitled

a guest
Oct 21st, 2011
40
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
SQL 0.90 KB | None | 0 0
  1. CREATE TABLE IF NOT EXISTS `tournament_player` (
  2.   `id` INT(11) NOT NULL AUTO_INCREMENT,
  3.   `tournament_id` INT(11) NOT NULL,
  4.   `player_id` INT(11) NOT NULL,
  5.   `goal` INT(11) NOT NULL,
  6.   `yellow` INT(11) NOT NULL,
  7.   `red` INT(11) NOT NULL,
  8.   `three` INT(11) NOT NULL,
  9.   `lost` INT(11) NOT NULL,
  10.   `draw` INT(11) NOT NULL,
  11.   `eleminated` INT(11) NOT NULL,
  12.   `challenge` INT(11) NOT NULL,
  13.   `penalty` INT(11) NOT NULL,
  14.   PRIMARY KEY (`id`)
  15. ) ENGINE=MyISAM  DEFAULT CHARSET=latin1 AUTO_INCREMENT=21 ;
  16.  
  17. INSERT INTO `tournament_player` (`id`, `tournament_id`, `player_id`, `goal`, `yellow`, `red`, `three`, `lost`, `draw`, `eleminated`, `challenge`, `penalty`) VALUES
  18. (1, 1, 1, 1, 3, 1, 1, 2, 3, 1, 2, 0),
  19. (2, 1, 2, 0, 2, 1, 2, 1, 2, 1, 1, 1),
  20. (13, 1, 4, 0, 1, 0, 0, 0, 0, 0, 0, 0),
  21. (12, 1, 3, 0, 1, 0, 0, 0, 0, 0, 0, 0),
  22. (20, 9, 4, -4, 0, 0, 0, 0, 0, 0, 0, 0),
  23. (19, 9, 3, 0, 0, 0, 0, 0, 0, 0, 0, 0);
  24.  
  25.  
  26.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement