Skip to article frontmatterSkip to article content
Site not loading correctly?

This may be due to an incorrect BASE_URL configuration. See the MyST Documentation for reference.

Atelier - Data Definition Language (DDL)

APERTO-NOTA

Atelier : Data Definition Language (DDL)

1. Créer une table pour les pays

Solution to Exercise #
CREATE TABLE pays (
    code_pays CHAR(4) PRIMARY KEY,
    nom_pays VARCHAR(40)
);

2. Ajouter, modifier et supprimer une colonne dans une table

Solution to Exercise #
ALTER TABLE clients ADD COLUMN courriel VARCHAR(75);

ALTER TABLE clients ALTER COLUMN courriel TYPE VARCHAR(60);

ALTER TABLE clients DROP COLUMN courriel;