![](https://img-blog.csdnimg.cn/20201014180756919.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
mysql
第二杯半价、
这个作者很懒,什么都没留下…
展开
-
mysql时间函数
1.获取当前日期+时间 now(); sysdate(); 这两个函数都是获取日期+时间,不同之处在于:now()在执行开始时值就得到了,sysdate()在函数执行时动态得到值 2.获取当前日期: curdate(); current_date(); current_date; 3.获取当前时间: curtime(); current_time(); current_time; ...原创 2019-03-27 14:03:13 · 1512 阅读 · 0 评论 -
mysql根据指定字符分割成多条数据
SELECT DISTINCT substring_index( substring_index( a.需要拆分的字段名, ‘,’, b.help_topic_id + 1 ), ‘,’,- 1 ) NAME FROM 表名 a JOIN mysql.help_topic b ON b.help_topic_id < ( length( a.需要拆分的字段名 ) - length( REPL...原创 2019-11-14 18:03:52 · 1605 阅读 · 0 评论