![](https://img-blog.csdnimg.cn/20201014180756926.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
数据库
Coldestmonth
这个作者很懒,什么都没留下…
展开
-
go mongo常见几种查询
go mongo常见几种查询演示结构体建立连接and查询查询id=1 and name="test"或查询查询 name="test" 或者 "test2"in查询查询 name in("test1","test2","test3")模糊查询查询name中包含 test字符串的数据演示结构体type Score struct { Subject string `bson:"subject" json:"subject"` Score int `bson:"score" json:"score"`原创 2021-03-02 14:42:03 · 2637 阅读 · 0 评论 -
Linux 安装mysql数据库和常用建表语句
tar包安装过程: mysql下载地址: https://www.mysql.com/downloads/ 进去点击community,然后点击Mysql Community Server 这里写图片描述如图中1的位置为选择之前版本,根据需要选择自己合适的版本, 2的位置为不同系统下的linux版本,选择完将滚动条拉到最底下,进行下载。下载好后,将tar包传输到服务器上。转载 2018-01-24 18:01:32 · 10481 阅读 · 0 评论 -
Qt中sqllite数据库判断一张表是否存在
今天在学习Qt的时候,打算使用Qt中的sqllist做一个小的Daemo,但是第一次在使用数据库的时候需要在代码中创建表,于是需要先判断表是否存在,于是去网上搜了一下,发现网上的案例都是下面这样:bool IsTableExist(QSqlQuery &query,QString table){ QString sql = QString("select count(*) fr...原创 2018-06-10 20:45:54 · 9143 阅读 · 2 评论 -
用户·角色·权限·表的设计
https://blog.csdn.net/Qsir/article/details/72628127转载 2018-12-07 19:13:02 · 466 阅读 · 0 评论