Rakuten-MySQL / script.sql
Demosthene-OR's picture
Update script.sql
59af043
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;