mysql将字符串转成数字
摘要://需要先转换成数字再进行排序 1.直接用加法 字符串+0 eg: select * from orders order by (mark+0) desc 2.使用函数 CAST(value as type); CONVERT(value, type); 注: 这里的type可以为: 浮点数 : D
阅读全文
posted @
2020-07-29 08:43
微笑的蜗牛
阅读(1049)
推荐(0)
java处理表情
摘要:<dependency> <groupId>com.vdurmont</groupId> <artifactId>emoji-java</artifactId> <version>5.1.1</version> </dependency> package com.jeeplus.modules.ff
阅读全文
posted @
2020-07-29 08:42
微笑的蜗牛
阅读(437)
推荐(0)
mybatis 标签
摘要:1.trim 标签 <trim prefix="having" suffix=";" prefixOverrides="and"> <if test="startTime != null "> MAX( b.follow_time ) <![CDATA[ >= ]]> #{startTime} </
阅读全文
posted @
2020-07-14 08:47
微笑的蜗牛
阅读(268)
推荐(0)
java复制类
摘要:List<SmallSetVo> list4 =listTransactional4.stream().map(a->{ SmallSetVo vo = new SmallSetVo(); BeanUtils.copyProperties(e, vo); return vo; }).collect(
阅读全文
posted @
2020-07-14 08:45
微笑的蜗牛
阅读(459)
推荐(0)
sql函数
摘要:1.替换,拼接 REPLACE ( group_concat( DISTINCT ROUND( c.area) ORDER BY c.area ), ',', '/' ) 2.FIND_IN_SET查询 SELECT a.*, REPLACE ( group_concat(b.policy_name
阅读全文
posted @
2020-07-14 08:43
微笑的蜗牛
阅读(349)
推荐(0)