上一页 1 2 3 4 5 6 7 8 9 ··· 13 下一页
摘要: default Class<T> thisTClass() { Class<?> class1 = getClass(); Class<?> interfaces = class1.getInterfaces()[0]; Type[] genericInterfaces = interfaces.g 阅读全文
posted @ 2021-07-10 10:35 Binz 阅读(670) 评论(0) 推荐(0)
摘要: mysql GROUP BY无法实现,用的临时变量完成的,经过测试效率极高-- @rownum 用于计算条数-- @clazz_id 用于比较的临时班级id(分组列名)-- 获取每个班级前5名的学生 SELECT * FROM ( SELECT id, student_id, score, claz 阅读全文
posted @ 2021-06-10 11:35 Binz 阅读(443) 评论(0) 推荐(0)
摘要: 方法1: 直接把需要清空的表改一个名字,然后重新建一个新表命名为之前的表名,然后再把改名后的表删除 方法2: MySQL可以通过optimize table语句释放表空间,重组表数据和索引的物理页,减少所占空间和优化读写性能。如果使用delete语句删除数据库,表空间不会直接回收,您可以用optim 阅读全文
posted @ 2021-04-15 18:03 Binz 阅读(775) 评论(0) 推荐(0)
摘要: 方式一 1、复制主机localtime到容器 docker cp /etc/localtime 容器id:/etc/localtime 如果报错 Error response from daemon: Error processing tar file(exit status 1): invalid 阅读全文
posted @ 2021-04-09 15:17 Binz 阅读(645) 评论(0) 推荐(0)
摘要: 查询进行中的命令:select * from information_schema.processlist where command!='Sleep'; 结束执行 :kill id 阅读全文
posted @ 2021-04-09 11:22 Binz 阅读(321) 评论(0) 推荐(0)
摘要: 1、先切换到字体目录 /usr/share/fontsls 2、查看有没有chinese目录,没有就创建一个 mkdir chinesechmod -R 755 /usr/share/fonts/chinesecd chinese 3、上传字体文件simsunb.ttf等等,没有吧Window系统的 阅读全文
posted @ 2021-03-08 15:18 Binz 阅读(944) 评论(0) 推荐(0)
摘要: 方式0(mysql8支持,利用窗口函数,优先推荐) SELECT * FROM ( SELECT id, student_id, score, clazz_id, ROW_NUMBER() OVER( PARTITION BY clazz_id ORDER BY clazz_id ASC,score 阅读全文
posted @ 2021-02-03 11:02 Binz 阅读(4226) 评论(0) 推荐(0)
摘要: 自己封装的工具类MyBatisSqlUtil import java.util.Date; import java.util.List; import java.util.Map; import org.apache.ibatis.mapping.BoundSql; import org.apach 阅读全文
posted @ 2020-11-18 10:33 Binz 阅读(1773) 评论(0) 推荐(0)
摘要: mongo 固定集合有几个特性: 自动丢弃历史数据 不能删除数据 不能修改成长度不一致的数据 既然不能修改成长度不一致的,其实可以你的数据加一个删除状态,默认0,删除后就改成1,这样就达到类似删除的效果 阅读全文
posted @ 2020-10-09 11:00 Binz 阅读(173) 评论(0) 推荐(0)
摘要: 前提:有A、B、C、D四台服务器,都在同一个网段,ABC不可联网,D可连接互联网。 在D安装代理软件 yum -y install tinyproxy 修改默认端口 vim /etc/tinyproxy/tinyproxy.conf Port 18899 #默认8888 #Allow 127.0.0 阅读全文
posted @ 2020-09-13 01:49 Binz 阅读(1346) 评论(0) 推荐(0)
上一页 1 2 3 4 5 6 7 8 9 ··· 13 下一页