SQL
DROP, TRUNCATE and DELETE Compared
Three ways to remove data, with very different consequences. Learn what each one destroys, what can be rolled back and what resets identity counters.
Defining and changing database objects.
3 notes tagged
Three ways to remove data, with very different consequences. Learn what each one destroys, what can be rolled back and what resets identity counters.
ALTER changes a table that already holds data. Add and drop columns, change types, set defaults and manage constraints without losing rows.
CREATE defines the objects data lives in. Learn CREATE DATABASE, CREATE SCHEMA and CREATE TABLE, with column definitions and inline constraints.