Demosthene-OR commited on
Commit
c1f6209
1 Parent(s): 2482b18

Update script.sql

Browse files
Files changed (1) hide show
  1. script.sql +17 -1
script.sql CHANGED
@@ -1 +1,17 @@
1
- SELECT VERSION();
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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;