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
|
CREATE TABLE IF NOT EXISTS `ex_article` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`created` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT 'date de création du tuple',
`categorie_id` int(11) DEFAULT NULL COMMENT 'FK ex_categorie.id',
`titre` varchar(150) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=11 ;
INSERT INTO `ex_article` (`id`, `created`, `categorie_id`, `titre`) VALUES
(1, '2012-08-01 17:36:20', 1, 'La palette de couleurs web'),
(2, '2012-08-01 17:37:34', 1, 'Créer un masque vectoriel '),
(3, '2012-08-01 17:37:44', 1, 'Modifier la profondeur des couleurs'),
(4, '2012-08-01 17:37:53', 1, 'Installer une brush'),
(5, '2012-08-01 17:38:18', 1, 'Créer une flèche vectorielle'),
(6, '2012-08-01 17:39:11', 2, 'Différence entre PAL et NTSC'),
(7, '2012-08-01 17:39:44', 2, 'Dessin de trajectoire'),
(8, '2012-08-01 17:40:04', 2, 'Changer la taille de la grille'),
(9, '2012-08-01 17:41:13', 3, 'Booléens et Probooléens'),
(10, '2012-08-01 17:41:44', 3, 'Modéliser une bouteille avec le modifier lathe');
CREATE TABLE IF NOT EXISTS `ex_categorie` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`lib` varchar(250) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=4 ;
INSERT INTO `ex_categorie` (`id`, `lib`) VALUES
(1, 'Photoshop'),
(2, 'After Effects'),
(3, '3D Studio Max'); |