Difference between revisions of "SQLite"

From UVOO Tech Wiki
Jump to navigation Jump to search
imported>Jeremy-busk
(No difference)

Revision as of 20:53, 21 February 2019

Getting Started

Altering Table Limitation Work-around

https://stackoverflow.com/questions/5938048/delete-column-from-sqlite-table/5987838#5987838

BEGIN TRANSACTION;
CREATE TEMPORARY TABLE t1_backup(a,b);
INSERT INTO t1_backup SELECT a,b FROM t1;
DROP TABLE t1;
CREATE TABLE t1(a,b);
INSERT INTO t1 SELECT a,b FROM t1_backup;
DROP TABLE t1_backup;
COMMIT;