Rakuten-MySQL / script.sql.bak
Demosthene-OR's picture
....
bb2257c
raw
history blame
No virus
544 Bytes
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', 'John', '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;