
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 · 382 阅读 · 0 评论 -
com.mysql.jdbc.Driver not loaded 或者 com.mariadb.jdbc.Driver not loaded
logstash Error: com.mariadb.jdbc.Driver not loadedCannot load driver class: com.mysql.jdbc.Driver Spring原创 2019-12-06 18:20:54 · 546 阅读 · 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 · 328 阅读 · 0 评论 -
mysql Date and Time type query
mysql Date Time queryDate query'2018''2018-09''2018-09-01'2018-092018-09-0109201820180920180901如 select * from avaliable_times where course_date = 2018; Time query'08:00:00''08'08...原创 2018-06-29 14:32:18 · 274 阅读 · 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 · 8437 阅读 · 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 · 1710 阅读 · 0 评论