![](https://img-blog.csdnimg.cn/20201014180756918.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
数据库
haorenlin5945
程序猿晋级之旅
展开
-
Jpa相关
使用@Query使用jpa时,如果要手写sql可以使用@Query注解,使用原生sql时参数nativeQuery要置为true。注入参数的方式方式一:使用? @Query("select * from block where height > ?2 order by height desc limit ?1", nativeQuery = true) fun ...原创 2019-11-12 17:40:34 · 168 阅读 · 0 评论 -
Mysql模糊查询区分大小写
使用like查询发现不能区分大小写解决方法 问题出现在COLLATE的设置上,将排序规则设置为*utf8mb4_bin*即可解决问题 ![在这里插入图片描述](https://img-blog.csdnimg.cn/20191106163931162.jpg)COLLATE介绍详情参考: COLLATE...原创 2019-11-06 16:40:01 · 442 阅读 · 0 评论 -
Mysql8可视化工具(navicat)连接失败 caching_sha2_password
使用可视化工具链接mysql 8 报错:ERROR 2059 (HY000): Authentication plugin 'caching_sha2_password' cannot be loaded: /usr/local/Percona-Server-5.5.35-rel33.0-611.Linux.x86_64/lib/mysql/plugin/caching_sha2_passwo...转载 2019-03-25 14:56:25 · 665 阅读 · 0 评论