diff --git a/make-table-SQL-eau.sql b/make-table-SQL-eau.sql index e5e8b29..3b12dd4 100644 --- a/make-table-SQL-eau.sql +++ b/make-table-SQL-eau.sql @@ -27,9 +27,10 @@ SET time_zone = "+00:00"; -- CREATE TABLE `eau` ( - `id` int(11) NOT NULL, + `id` int(11) NOT NULL AUTO_INCREMENT, `date` date NOT NULL, - `conso` decimal(10,0) NOT NULL + `conso` decimal(10,0) NOT NULL, + PRIMARY KEY (id) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- @@ -131,25 +132,6 @@ INSERT INTO `eau` (`id`, `date`, `conso`) VALUES (104, '2018-01-06', '532'), (105, '2018-01-07', '596'); --- --- Index pour les tables exportées --- - --- --- Index pour la table `eau` --- -ALTER TABLE `eau` - ADD PRIMARY KEY (`id`); - --- --- AUTO_INCREMENT pour les tables exportées --- - --- --- AUTO_INCREMENT pour la table `eau` --- -ALTER TABLE `eau` - MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=106; /*!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 */;