« MySQL/Manipulation de table » : différence entre les versions

Contenu supprimé Contenu ajouté
Ligne 67 :
DROP TABLE `awards`
</source>
Supprime toute la table (enregistrements et structure).
Will completely delete the table and all the records it contains.
 
Plusieurs :
You can also drop more than one table with a single statement:
<source lang=sql>
DROP TABLE `table1`, `table2`, ...
</source>
 
There are come optional keywords:
Avec vérification :
<source lang=sql>
DROP TEMPORARY TABLE `table`;
DROP TABLE `table` IF EXISTS;
</source>
TEMPORARY must be specified, to drop a temporary table. IF EXISTS tells the server that it must not raise an error if the table doesn't exist.
 
 
== Exemple pour travaux pratiques ==