#####在编写realm数据库相关时: 代码: List<Student> delByStudent(String priNum){ RealmResults<Student> studentsList = myStudentRealm.where(Student.class).equalTo(" ...
分类:
数据库 时间:
2020-06-05 15:37:00
阅读次数:
92
MyBatis-Puls条件构造器 官方文档:baomidou条件构造器 查询方式 说明 setSqlSelect 设置 SELECT 查询字段 where WHERE 语句,拼接 + WHERE 条件 and AND 语句,拼接 + AND 字段=值 andNew AND 语句,拼接 + AND ...
分类:
其他好文 时间:
2020-06-05 12:56:29
阅读次数:
192
Given a m * n matrix mat and an integer K, return a matrix answer where each answer[i][j] is the sum of all elements mat[r][c] for i - K <= r <= i + K ...
分类:
其他好文 时间:
2020-06-04 23:16:41
阅读次数:
110
SELECT TOP 10 st.text AS SQL_Full, SUBSTRING( st.text, (qs.statement_start_offset / 2) + 1, ((CASE statement_end_offset WHEN -1 THEN DATALENGTH(st.tex ...
分类:
数据库 时间:
2020-06-04 14:12:40
阅读次数:
91
DELETE from 表明 where id not in( select a.id from ( SELECT id FROM 表明 GROUP BY 字段 )a ) MySQL5.7版本sql_mode=only_full_group_by问题解决办法 SET sql_mode ='STRIC ...
分类:
数据库 时间:
2020-06-04 10:40:52
阅读次数:
85
问题描述: 最近刚搭建了zabbix服务器,然后新增加了一个用户,并且把默认的Admin禁用了。然后这个监控页面一直没关,保持了10多天,今天不小心把浏览器关闭了,重新打开后,突然忘记了用户名,这下麻烦了。 解决方案: 1、登陆zabbix服务器,连接到mysql数据库 [root@localhos ...
分类:
其他好文 时间:
2020-06-04 10:33:10
阅读次数:
179
oracle hint 可以用v$sql_hint 来查询,比如有多少个INDEX相关的hint >set pagesize 500>set linesize 300>select NAME,CLASS,VERSION,PROPERTY from v$sql_hint where name like ...
分类:
数据库 时间:
2020-06-04 01:08:53
阅读次数:
74
本想百度抄下现成的,发现不多,而且大多感觉好复杂,还是自己写了发个吧: List<M_Entity> svcs = db.M_Entities.Where(u => db.M_Entities.GroupBy(k => k.ColumnID).Select(k => k.Max(o => o.ID) ...
分类:
其他好文 时间:
2020-06-04 01:03:50
阅读次数:
158
本文参考链接:https://blog.csdn.net/sinat_40692412/article/details/81200133 group by 分组 ,配合聚合函数使用 sum() count() avg()等等 having 对分组后的结果进行筛选 ORDER BY 最后对结果进行排序 ...
分类:
数据库 时间:
2020-06-04 00:48:31
阅读次数:
79
题目如下: Given the array candies and the integer extraCandies, where candies[i] represents the number of candies that the ith kid has. For each kid check ...
分类:
其他好文 时间:
2020-06-03 23:40:35
阅读次数:
99