会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
RookieCoderAdu
博客园
首页
新随笔
联系
订阅
管理
上一页
1
···
9
10
11
12
13
14
15
16
17
···
31
下一页
2021年7月16日
Xml命名空间添加前缀的意义
摘要: 在 XML 中,元素名称是由开发者定义的,当两个不同的文档使用相同的元素名时,就会发生命名冲突。 假如这两个 XML 文档被一起使用,由于两个文档都包含带有不同内容和定义的 <table> 元素,就会发生命名冲突 使用前缀可以避免命名冲突 比如 两个<table> 元素 (<h:table> 和 <
阅读全文
posted @ 2021-07-16 10:14 RookieCoderAdu
阅读(170)
评论(0)
推荐(0)
2021年7月15日
解决vs Installer无法下载更新
摘要: 在 https://ip.tool.chinaz.com/aka.ms 查询aka.ms的IP 然后在 C:\Windows\System32\drivers\etc\ 的hosts 文件下添加 aka.ms和对应IP即可
阅读全文
posted @ 2021-07-15 21:26 RookieCoderAdu
阅读(490)
评论(0)
推荐(1)
2021年7月14日
mongodb模糊查询
摘要: 范例: db.myDb.aggregate([ {$match:{"Id":"a941202e-29f6-4282-8101-b7e878c82811",$or:[{"Status":/增强/},{"Room":/园/}] }} ]) 使用 / / 便可以实现sql中like的功能。注意:没有引号,
阅读全文
posted @ 2021-07-14 11:58 RookieCoderAdu
阅读(319)
评论(0)
推荐(0)
2021年7月13日
mongodb排序
摘要: 使用sort即可,如下: db.adu.find().sort({"Age":-1}) 其中,Age为排序字段,-1表示降序,1表示升序
阅读全文
posted @ 2021-07-13 23:25 RookieCoderAdu
阅读(70)
评论(0)
推荐(0)
mongodb如何修改_id
摘要: 直接使用update来修改_id会报错。 可以使用以下语句 var o=db.adu.findOne({"_id":ObjectId("5f734d0fa9078a7ef2a8cf85")}); o._id="176BF2F0-E022-4F53-A285-F941E2FCD908"; db.adu
阅读全文
posted @ 2021-07-13 23:07 RookieCoderAdu
阅读(2402)
评论(0)
推荐(0)
向Mongodb中插入数组元素
摘要: 我想向mongodb集合中插入数组元素,该数组元素一开始在原集合中并不存在。 使用语句: db.MyDb.update({"_id":"aaaaaaa"}, {$push:{"Schedule":{"Diff":NumberInt(0),"TimespanHour":12.546}}}) 该语句表示
阅读全文
posted @ 2021-07-13 15:29 RookieCoderAdu
阅读(1107)
评论(0)
推荐(0)
2021年7月9日
Mongodb 常见操作符
摘要: $gt 大于 $lt 小于 $gte 大于等于 $lte 小于等于 $ne 不等于 聚合查询操作符: $project db.test.aggregate( { $project : { _id : 0 , name : 1 , weight : 1 , newWeight : "$weight"
阅读全文
posted @ 2021-07-09 17:52 RookieCoderAdu
阅读(141)
评论(0)
推荐(0)
2021年7月7日
Sql 向数据库中添加一行数据
摘要: USE [MyDb] GO IF NOT EXISTS(SELECT * FROM [MyDb].[dbo].[Product] WHERE Name='小浣熊干脆面') BEGIN INSERT [dbo].[Product]([Id],[Value],[Name],[Description],[
阅读全文
posted @ 2021-07-07 17:28 RookieCoderAdu
阅读(1301)
评论(0)
推荐(0)
2021年7月6日
redis启动报错 no config file specified, using the default config.
摘要: 在redis的安装目录下面新建文本文档,写入 redis-server.exe redis.windows.conf 重命名为start.bat,每次双击这个批处理文件即可
阅读全文
posted @ 2021-07-06 23:12 RookieCoderAdu
阅读(641)
评论(0)
推荐(0)
C# 合并表达式树
摘要: EF在存在多条件查询的时候,便存在合并表达式树的情况。 实现代码: Expression<Func<Student, bool>> express1 = s => s.Name.Contains("奥特曼"); Expression<Func<Student, bool>> express2 = s
阅读全文
posted @ 2021-07-06 16:46 RookieCoderAdu
阅读(408)
评论(1)
推荐(1)
上一页
1
···
9
10
11
12
13
14
15
16
17
···
31
下一页
公告