Data Definition
The Data Definition Language (DDL) manages table and index structure. The most basic items of DDL are the CREATE
, ALTER
, RENAME
, DROP
and TRUNCATE
statements:
CREATE
creates an object (a table, for example) in the database, e.g.:
ALTER
modifies the structure of an existing object in various ways, for example, adding a column to an existing table or a constraint, e.g.:
TRUNCATE
deletes all data from a table in a very fast way, deleting the data inside the table and not the table itself. It usually implies a subsequent COMMIT operation, i.e., it cannot be rolled back (data is not written to the logs for rollback later, unlike DELETE).
DROP
deletes an object in the database, usually irretrievably, i.e., it cannot be rolled back, e.g.:
Read more about this topic: SQL
Famous quotes containing the words data and/or definition:
“This city is neither a jungle nor the moon.... In long shot: a cosmic smudge, a conglomerate of bleeding energies. Close up, it is a fairly legible printed circuit, a transistorized labyrinth of beastly tracks, a data bank for asthmatic voice-prints.”
—Susan Sontag (b. 1933)
“The man who knows governments most completely is he who troubles himself least about a definition which shall give their essence. Enjoying an intimate acquaintance with all their particularities in turn, he would naturally regard an abstract conception in which these were unified as a thing more misleading than enlightening.”
—William James (18421910)