![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
mysql
LF-DevJourney
这个作者很懒,什么都没留下…
展开
-
mysql查询各组最近一条记录
select max(record_id),record_name,user_id from sc_records group by user_id order by null. SQL Show most recent record in GROUP BY? Retrieving the last record in each group - MySQL原创 2020-06-06 09:39:25 · 334 阅读 · 0 评论 -
com.mysql.jdbc.Driver not loaded 或者 com.mariadb.jdbc.Driver not loaded
logstash Error: com.mariadb.jdbc.Driver not loaded Cannot load driver class: com.mysql.jdbc.Driver Spring原创 2019-12-06 18:20:54 · 500 阅读 · 0 评论 -
使用 SQL 进行排名搜索
参考 Ranked search with SQL 计算term的出现次数。 SELECT SUM(((LENGTH(Body) - LENGTH(REPLACE(Body, 'term', '')))/4)) AS Occurrences 以次数进行排序。 SELECT SUM(((LENGTH(Body) - LENGTH(REPLACE(Body, 'term', '')))/4) ...原创 2019-11-09 17:20:21 · 283 阅读 · 0 评论 -
mysql Date and Time type query
mysql Date Time query Date query '2018' '2018-09' '2018-09-01' 2018-09 2018-09-01 09 2018 201809 20180901 如 select * from avaliable_times where course_date = 2018; Time query '08:00:00' '08' 08...原创 2018-06-29 14:32:18 · 235 阅读 · 0 评论 -
ubuntu mysql 初始密码修改
转自:https://www.cnblogs.com/roadofstudy/p/7446690.html 最近在ubuntu系统上安装了MySQL,但是安装时没有提示输入root用户密码,在网上找了一天解决方案,试图修改root用户下的登入密码,但是网上的帖子都不凑效,最后终于改成功了,因此记下来以供有同样需要的人参考。 1、安装 $ sudo apt-get install mysql-...转载 2018-06-26 20:01:54 · 8381 阅读 · 7 评论 -
Mysql Unique 索引 与 NULL
只要索引中的 unique index allows duplicates if at least one of the columns is null. refer to unique index allows duplicates if at least one of the columns is null.原创 2018-08-07 19:45:48 · 1659 阅读 · 0 评论