1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34
|
CREATE TABLE `user` (
`id` int(10) unsigned NOT NULL auto_increment,
`nom` char(10) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=6 ;
INSERT INTO `user` (`id`, `nom`) VALUES
(1, 'user 1'),
(2, 'user 2'),
(3, 'user 3'),
(4, 'user 4'),
(5, 'user 5');
CREATE TABLE `photo` (
`id_user` int(10) unsigned NOT NULL,
`photo` char(10) NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
INSERT INTO `photo` (`id_user`, `photo`) VALUES
(1, 'photo 1'),
(1, 'photo 2'),
(2, 'photo 1'),
(2, 'photo 2'),
(2, 'photo 3'),
(2, 'photo 4'),
(3, 'photo 1'),
(4, 'photo 1'),
(4, 'photo 2'),
(4, 'photo 3'),
(5, 'photo 1'),
(5, 'photo 2'),
(5, 'photo 3'),
(5, 'photo 4'); |
Partager