
数据库
Shairlly
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
mysql带条件统计数据
第一种:简单叠加 SELECT ip_block, COUNT(*) as zong, count(ip_status = 1 OR NULL) as kong, COUNT(ip_status = 2 OR NULL) as yong, COUNT(ip_status = 3 OR NULL) as xiao, ip_node as node FROM ip_manger GROUP BY ...原创 2020-05-07 17:42:38 · 279 阅读 · 0 评论 -
sql语句关于日期的处理
日期范围: select * from test where create_time between '2019-07-30' and '2019-07-31'; select * from test where create_time >= '2019-07-30' and date <= '201-07-31' 日期增减 当天0点的日期增减1天 INSERT int...原创 2019-08-08 16:44:49 · 512 阅读 · 0 评论 -
python,sql字符串追加
+= CONCAT(substring(vmcode,13,4),'-',substring(vmcode,17,2) INSERT into allhost select vmcode,CONCAT(substring(vmcode,13,4),'-',substring(vmcode,17,2),'-',substring(vmcode,20,2)),end_time from ho...原创 2019-07-23 15:14:17 · 287 阅读 · 0 评论