SQLite 常用语句 sql语句

前端之家收集整理的这篇文章主要介绍了SQLite 常用语句 sql语句前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。

1、创建表

create table Words_new

(rowid INTEGER PRIMARY KEY AUTOINCREMENT,word text NOT NULL,meanings text NOT NULL,pronounce text); 2、插入数据 insert into Words_new (word,meanings,pronounce) select word,pronounce from Words; 3、update 多表查询 修改 update Words set meanings=(select meanings from Words_one where Words.[word]=Words_one.[word]),pronounce=(select pronounce from Words_one where Words.[word]=Words_one.[word]) Where Words.[word]=(select word from Words_one where Words.[word]=Words_one.[word]);
原文链接:https://www.f2er.com/sqlite/200539.html

猜你在找的Sqlite相关文章