![](https://img-blog.csdnimg.cn/20201014180756925.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
mysql
鱼片橙子
这个作者很懒,什么都没留下…
展开
-
Springboot连接数据库
连接mysql数据库架包 <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-web</artifactId> </dependenc...原创 2020-02-20 20:54:39 · 293 阅读 · 0 评论 -
mysql的uuid获取
mysql> SELECT UUID();mysql> c2cb8f66-351f-11e7-b3ed-00163e0429b6mysql> SELECT REPLACE(UUID(), '-', ''); #将'-'符号替换掉mysql> 45c87fa0352211e78d40d4977a9ea871带‘-’字段长度是36,去掉后32位...原创 2019-07-18 17:05:26 · 7953 阅读 · 1 评论 -
mysql转换日期格式
select phone, date_format(time, '%Y%m%d%H%i%s') from user where phone='xxxxxxxx'Y:年m:月d:日h:时i:分,mysql不区分大小写,所有分用i表示;s:秒原创 2019-07-22 19:55:39 · 112 阅读 · 0 评论 -
二进制状态码
建表过程中用int表示各种状态二进制 状态 int数字 1 初级 1 10 中级 2 100 高级 4 11=3 就是为初级加中级101=5 就是初级加高级这样就可以防止重复了...原创 2019-08-09 17:35:39 · 434 阅读 · 0 评论 -
with 递归查询一条数据下所有子数据
WITH RECURSIVE modt AS ( SELECT ID , typeid, cname, parentid, score, days, ...原创 2019-08-16 20:01:24 · 221 阅读 · 0 评论