数据库
不知道起个啥名“”
每天敲一敲yyds
展开
-
MD5加密、注册、登录、多界面切换、数据传递
QCryptographicHash类 1. QT提供以下加密方法 本文以MD5为准则讲解 2.使用加密的步骤: 1.创建加密对象,使用构造函数 QCryptographicHash(QCryptographicHash::Algorithm method) 参数说明:Algorithm method表示使用哪种加密方式,本文是MD5 2.将加密数据放到数组 void addData(const QByteArray &data) 参数说明: 3.获取加密对象 QByteArra原创 2022-05-09 10:39:07 · 319 阅读 · 0 评论 -
sqlite3语法
1.创建文件.db sqlite3 xx.db 2.新建表格:create table if not exists 表名(字段名1 数据类型,字段名2 数据类型); 3.约束条件:if not exists 4.表格里添加数据:insert into 表名 values(数据1,数据2); 5.查询数据: 1.select * from 表名 where 条件;//单一条件 2.select * from stu where name="李四" and "id";//多条件查原创 2022-05-07 20:25:16 · 503 阅读 · 0 评论