Create, alter and drop tables
CREATE TABLE
statement defines the structure of a table, specifying column names, data types, and optional constraints.
INSERT INTO
statement to populate it with data like you did in the previous article.
ALTER TABLE
statement lets you modify an existing table by adding, altering, or dropping columns.
DROP TABLE
statement. Be careful, as this
DROP TABLE
permanently removes the table and its data.CREATE TABLE
statement is used to define a table’s structure, including columns and their data types.ALTER TABLE
to make changes to an existing table—add, modify, or drop columns.DROP TABLE
, as it removes the table and all the data.