
mysql
文章平均质量分 56
chenHelloWorld
这个作者很懒,什么都没留下…
展开
-
mysql中group by语句使用
mysql原创 2024-08-26 15:23:52 · 492 阅读 · 0 评论 -
mysql中日、周、月、季、年各种格式获取
mysql日、周、月、季、年各种格式获取1、日1.1、日(格式:2021-01-07)2、周2.1、周(格式:202102)2.2、周(格式:)3、月4、季5、年1、日1.1、日(格式:2021-01-07)SELECT date('2021-01-07 23:59:59') time;结果:2021-01-072、周2.1、周(格式:202102)select YEARWEEK('2021-01-17 23:59:59',3);2.2、周(格式:)3、月4、季5、年...原创 2021-11-22 14:41:24 · 1258 阅读 · 0 评论 -
mysql的varchar类型转换int类型
mysql的varchar类型转换int类型一、手动转化类型(直接+0)二、使用MySQL函数CAST三、使用MySQL函数CONVERT四、参考链接select * from gyzd_yysinfo order by cast(yysid as SIGNED INTEGER)一、手动转化类型(直接+0)select server_id from cardserver where game_id = 1 order by server_id+0 desclimit 10二、使用MySQL函数C原创 2021-06-26 18:18:43 · 3838 阅读 · 0 评论