1.创建表
CREATE TABLE IF NOT EXISTS UserTable (username TEXT primary key,password TEXT,email TEXT);
2.插入一条数据
INSERT OR REPLACE INTO UserTable (username , password,email) VALUES (?,?,?);
3.更新一条数据
UPDATE UserTable set password = ‘123456‘ where username = ‘wxhl‘;
4.查询数据
SELECT username,password,email FROM UserTable where username = ‘wxhl‘
5.删除数据
DELETE FROM UserTable WHERE username=‘wxhl‘
6.模糊查询
SELECT *FROM UserTable Where username is LIKE "流%"
7.倒叙排列(默认正)
SELECT *FROM UserTable ORDER BY sage DESC
相关文章
- 09-13python安装sqlite3遇到No files/directories in C:\Users\john\AppData\Local\Temp\pip-build-c2arlllc\pysqlite3\pip-egg-info (from PKG-INFO)错误解决办法
- 09-13代码实现sqlite的解密(sqlcipher 微信数据库)
- 09-13微信 SQLite 数据库修复实践
- 09-13怎么在手机上查看sqlite db
- 09-13用SQLite查看编辑android导出的微信聊天记录
- 09-13在SQLite中使用事务
- 09-13sqlite加密
- 09-13Android sqlite3工具的使用
- 09-13android-SQLite 和 Content
- 09-13SQLite 表达式(http://www.w3cschool.cc/sqlite/sqlite-expressions.html)