Demosthene-OR commited on
Commit
bb2257c
1 Parent(s): 2449597
Files changed (2) hide show
  1. script.sql +3 -0
  2. script.sql.bak +17 -0
script.sql CHANGED
@@ -1,3 +1,6 @@
 
 
 
1
  SELECT VERSION();
2
  -- Étape 1 : Créer la table d'utilisateurs
3
  CREATE TABLE utilisateurs (
 
1
+ GRANT ALL PRIVILEGES ON *.* TO 'root' WITH GRANT OPTION;
2
+ FLUSH PRIVILEGES;
3
+
4
  SELECT VERSION();
5
  -- Étape 1 : Créer la table d'utilisateurs
6
  CREATE TABLE utilisateurs (
script.sql.bak ADDED
@@ -0,0 +1,17 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ SELECT VERSION();
2
+ -- Étape 1 : Créer la table d'utilisateurs
3
+ CREATE TABLE utilisateurs (
4
+ id INT AUTO_INCREMENT PRIMARY KEY,
5
+ nom VARCHAR(50),
6
+ prenom VARCHAR(50),
7
+ email VARCHAR(100)
8
+ );
9
+
10
+ -- Étape 2 : Insérer des données dans la table
11
+ INSERT INTO utilisateurs (nom, prenom, email)
12
+ VALUES ('Doe', 'John', 'john.doe@example.com'),
13
+ ('Smith', 'Jane', 'jane.smith@example.com'),
14
+ ('Johnson', 'Bob', 'bob.johnson@example.com');
15
+
16
+ -- Étape 3 : Sélectionner et afficher le contenu de la table
17
+ SELECT * FROM utilisateurs;