转 select *, count(distinct name) from table group by name结果:id name count(distinct name) 1 a 1 2 b 1 3 c 1 最后一项是多余的,不用管就行了,目的达到。原来mysql这么笨,轻轻一下就把他骗过去了 ...
分类:
其他好文 时间:
2021-04-24 11:59:34
阅读次数:
0
Mongdb mongdb入门 mongdb安装 linux下安装mangdb wget https://fastdl.mongodb.org/linux/mongodb-linux-x86_64-rhel62-3.2.10.tgz 下载完成后解压 tar zxvf mongodb-linux-x8 ...
分类:
数据库 时间:
2021-04-24 11:58:27
阅读次数:
0
github下载地址: https://github.com/uuidjs/uuid 1. Install npm install uuid 2. Create a UUID (ES6 module syntax) import { v4 as uuidv4 } from 'uuid'; uuidv ...
分类:
其他好文 时间:
2021-04-24 11:48:35
阅读次数:
0
在windows 10中 开启 PHP8 + PHPStorm + Xdebug3 调试模型 ...
分类:
Web程序 时间:
2021-04-23 12:18:17
阅读次数:
0
看到之前在csdn 上写的摄像头驱动总结,首先得感谢摄像头驱动这个东西 让我在读书时挣到了一笔生活费!! 现在把文章简要拷贝过来,以及去掉之前的代码然后随便扯一下文件的map吧 驱动核心: 将摄像头驱动中的yuv数据map到用户空间,便于访问。read 性能不够!! 原理是:通过mmap将内核太bu ...
分类:
其他好文 时间:
2021-04-23 12:17:55
阅读次数:
0
powershell快捷打开方式 powershell打开:在任意目录下,按住shift,然后右键,选择“在此处打开powershell”即可 常用dos命令 #盘符切换 d:\ ...
分类:
其他好文 时间:
2021-04-23 12:05:00
阅读次数:
0
1、测试1 [root@centos7 test2]# i=0 [root@centos7 test2]# max=5 [root@centos7 test2]# while((i<max));do echo $i;((i++));done 0 1 2 3 4 ...
分类:
系统相关 时间:
2021-04-23 12:03:54
阅读次数:
0
import os, zipfile def deflate(paths, zip_path): z = zipfile.ZipFile(zip_path, 'w', zipfile.ZIP_DEFLATED, allowZip64=True, compresslevel=9) for path i ...
分类:
编程语言 时间:
2021-04-23 12:03:14
阅读次数:
0
一、ScheduledExecutorService 设计思想 ScheduledExecutorService,是基于线程池设计的定时任务类,每个调度任务都会分配到线程池中的一个线程去执行,也就是说,任务是并发执行,互不影响。 需要注意,只有当调度任务来的时候,ScheduledExecutorS ...
分类:
编程语言 时间:
2021-04-23 12:00:54
阅读次数:
0
1、截屏 adb shell screencap -p /sdcard/a.png 2、录屏 adb shell screenrecord /sdcard/a.mp4 ...
分类:
数据库 时间:
2021-04-23 11:57:08
阅读次数:
0