lsqlthw ex12
This commit is contained in:
parent
de078e330c
commit
f3ec115868
18
lsqlthw-remnants/ex12.sql
Normal file
18
lsqlthw-remnants/ex12.sql
Normal file
@ -0,0 +1,18 @@
|
|||||||
|
DROP TABLE IF EXISTS person;
|
||||||
|
|
||||||
|
CREATE TABLE person (
|
||||||
|
id INTEGER PRIMARY KEY,
|
||||||
|
first_name TEXT,
|
||||||
|
last_name TEXT,
|
||||||
|
age INTEGER
|
||||||
|
);
|
||||||
|
|
||||||
|
ALTER TABLE person RENAME TO peoples;
|
||||||
|
|
||||||
|
ALTER TABLE peoples ADD COLUMN hatred INTEGER;
|
||||||
|
|
||||||
|
ALTER TABLE peoples RENAME TO person;
|
||||||
|
|
||||||
|
.schema person
|
||||||
|
|
||||||
|
DROP TABLE person;
|
Loading…
Reference in New Issue
Block a user