Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor sql script by adding primary key and auto increment into cre… #2

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 3 additions & 21 deletions make-table-SQL-eau.sql
Original file line number Diff line number Diff line change
Expand Up @@ -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;

--
Expand Down Expand Up @@ -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 */;