File size: 627 Bytes
ff6d992
9182aa9
bb2257c
c1f6209
 
 
 
 
 
 
 
 
 
 
ee6042e
c1f6209
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
GRANT ALL PRIVILEGES ON *.* TO 'root'@'%' WITH GRANT OPTION;
FLUSH PRIVILEGES;

SELECT VERSION();
-- Étape 1 : Créer la table d'utilisateurs
CREATE TABLE utilisateurs (
    id INT AUTO_INCREMENT PRIMARY KEY,
    nom VARCHAR(50),
    prenom VARCHAR(50),
    email VARCHAR(100)
);

-- Étape 2 : Insérer des données dans la table
INSERT INTO utilisateurs (nom, prenom, email)
VALUES ('Doe', 'Olivier', 'john.doe@example.com'),
       ('Smith', 'Jane', 'jane.smith@example.com'),
       ('Johnson', 'Bob', 'bob.johnson@example.com');

-- Étape 3 : Sélectionner et afficher le contenu de la table
SELECT * FROM utilisateurs;