You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
9 lines
319 B
9 lines
319 B
```SQL
|
|
CREATE TABLE test (id INTEGER PRIMARY KEY AUTOINCREMENT, name VARCHAR(20));
|
|
INSERT INTO test (name) VALUES ('fun');
|
|
ALTER TABLE test RENAME TO test_tmp;
|
|
CREATE TABLE test (id INTEGER PRIMARY KEY AUTOINCREMENT, age FLOAT, name VARCHAR(20));
|
|
DROP TABLE test;
|
|
INSERT INTO test (name) SELECT name FROM test_tmp;
|
|
```
|