SQLite 的 INSERT INTO 語句用於向數據庫的某個表中添加新的數據行。
基本語法:INSERT INTO TABLE_NAME VALUES (value1,value2,value3,...valueN);
-- 插入時,所有字段都傳值的時候 sqlite> insert into tb_user values(1, "張三", 26); -- 插入時,不用每個字段都傳值。id字段自增加1,其他字段沒傳值就為空值 sqlite> insert into tb_user(name) values("李四"); sqlite> insert into tb_user(name, age) values("王五", 26);
https://www.jianshu.com/p/faa5e852b76b
https://bbs.csdn.net/topics/70039385
https://www.runoob.com/sqlite/sqlite-insert.html