MySQL/DISTINCT:修订间差异
来自康健生活
小 Kangkk移动页面Mysql/DISTINCT至MySQL/DISTINCT,不留重定向 |
|||
| (未显示同一用户的1个中间版本) | |||
| 第3行: | 第3行: | ||
{{Shc_out|<syntaxhighlight lang="mysql"> | {{Shc_out|<syntaxhighlight lang="mysql"> | ||
SELECT DISTINCT origin FROM log_origin WHERE time > '2022-01-01 00:00:00' and time < '2022-05-01 00:00:00'</syntaxhighlight>|<syntaxhighlight lang="bash"> | SELECT DISTINCT origin FROM log_origin WHERE time > '2022-01-01 00:00:00' and time < '2022-05-01 00:00:00'</syntaxhighlight>|<syntaxhighlight lang="bash"> | ||
origin | +-----------------------+ | ||
http://localhost:8081 | | origin | | ||
http://localhost:8082 | +-----------------------+ | ||
</syntaxhighlight>| | | http://localhost:8081 | | ||
| http://localhost:8082 | | |||
+-----------------------+ | |||
2 rows in set (0.01 sec) | |||
</syntaxhighlight>|mysql>}} | |||