DROP TABLE
DROP TABLE will remove the table and all its content. In this example we also used the .schema command to show what is the current schema
and the .mode batch to make the SELECT statement show a simple line.
.mode batch
CREATE TABLE person (
id INTEGER,
name TEXT
);
SELECT '-------';
.schema
DROP TABLE person;
SELECT '-------';
.schema
SELECT '-------';
$ sqlite < examples/drop-table.sql
-------
CREATE TABLE person (
id INTEGER,
name TEXT
);
-------
-------