![](https://img-blog.csdnimg.cn/20201014180756926.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
mysql
文章平均质量分 75
言之情
这个作者很懒,什么都没留下…
展开
-
LEFT JOIN右表为空也查出数据
sql 写错了 你懂的:百度查询链接 select t1.user_id , t1.count count ,t2.followersCount followersCount ,certification_type,audit_status,audit_time from (select count(1) followersCount from my_user_atten翻译 2020-07-16 16:13:16 · 2237 阅读 · 0 评论 -
mybatis collection一对多 ofType
话不多所: 多对一类似 见 链接一对多子查询mybaits 中的参数传递 :property:指定关联属性,即Country类中的集合属性ofType:集合属性的泛型类型 可为基本类型column 传入参数 column=“cid” 可传多个 column="{cid,mname}" 传入的字段为resultMap type类型 即 cid ,cname 不可用mapper层接口参数传入 如果想用mapper的参数 只能用第二种方法。如代码(自家公司代码):ofType 为原创 2020-07-06 17:35:13 · 4479 阅读 · 0 评论 -
serverTimezone=UTC
标题过于醒目,这是我时常重新安装mysql 。总会忘记设计时区设置导致浪费大量时间。一次笔记望日后便于查找。使用JDBC连接MySql时出现:The server time zone value ‘�й���ʱ��’ is unrecognized or represents more than one time zone. You must configure either the serv...原创 2020-02-11 21:47:36 · 8280 阅读 · 2 评论