문서의 선택한 두 판 사이의 차이를 보여줍니다.
양쪽 이전 판 이전 판 다음 판 | 이전 판 다음 판 양쪽 다음 판 | ||
database:mysql:basic [2018/11/09 17:54] kwon37xi |
database:mysql:basic [2019/05/13 14:44] kwon37xi [현재 상태 보기] |
||
---|---|---|---|
줄 184: | 줄 184: | ||
Open tables: 1 Queries per second avg: 0.021 | Open tables: 1 Queries per second avg: 0.021 | ||
-------------- | -------------- | ||
+ | </ | ||
+ | |||
+ | ===== 호스트별 커넥션 갯수 ===== | ||
+ | <code sql> | ||
+ | select SUBSTRING_INDEX(HOST,':', | ||
+ | from information_schema.processlist | ||
+ | group by SUBSTRING_INDEX(HOST,':', | ||
</ | </ | ||
줄 310: | 줄 317: | ||
inner join `COLUMNS` c on t.TABLE_NAME = c.TABLE_NAME | inner join `COLUMNS` c on t.TABLE_NAME = c.TABLE_NAME | ||
order by t.TABLE_SCHEMA, | order by t.TABLE_SCHEMA, | ||
+ | </ | ||
+ | |||
+ | ===== Group By 의 비 Grouping 컬럼 정보 concat ===== | ||
+ | * [[https:// | ||
+ | <code sql> | ||
+ | SELECT keyword, GROUP_CONCAT( syn SEPARATOR | ||
+ | FROM syn_common | ||
+ | GROUP BY keyword | ||
</ | </ | ||