{"id":579,"date":"2019-02-27T06:02:32","date_gmt":"2019-02-27T06:02:32","guid":{"rendered":"https:\/\/monyog.jp\/?p=579"},"modified":"2019-03-07T02:20:45","modified_gmt":"2019-03-07T02:20:45","slug":"%e3%83%95%e3%82%a3%e3%83%ab%e3%82%bf%e3%83%aa%e3%83%b3%e3%82%b0","status":"publish","type":"post","link":"https:\/\/smart-style.main.jp\/monyogjp\/static\/document\/579\/index.html","title":{"rendered":"\u30d5\u30a3\u30eb\u30bf\u30ea\u30f3\u30b0"},"content":{"rendered":"
\u30b9\u30ec\u30c3\u30c9\u306e\u8868\u793a\u306f\u3001\u7d44\u307f\u8fbc\u307f\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306b\u5bfe\u3059\u308bSELECT\u30af\u30a8\u30ea\u3068\u3057\u3066\u5b9f\u88c5\u3055\u308c\u3066\u3044\u307e\u3059\u3002\u6700\u521d\u306e\u30af\u30a8\u30ea\u306f\u5358\u7d14\u306b\u3001<\/p>\n
\r\nSELECT *\r\nFROM processlist\r\nORDER BY time DESC;\r\n<\/pre>\n\u4ee5\u4e0b\u306e\u30af\u30a8\u30ea\u3067\u306f\u3001ORDER BY\u53e5\u306f\u6700\u4e0a\u90e8\u306b\u6700\u3082\u9045\u3044\u30af\u30a8\u30ea\u3092\u8868\u793a\u3057\u307e\u3059\uff08\u8a73\u7d30\u306a\u8abf\u67fb\u306b\u4fbf\u5229\u3067\u3059\uff09\u3002\u5fc5\u8981\u306b\u5fdc\u3058\u3066\u3001WHERE\u53e5\u3001ORDER BY\u53e5\u3001\u304a\u3088\u3073GROUP BY\u53e5\u3068AGGREGATES\u3092\u4f7f\u7528\u3057\u3066\u3053\u306e\u30af\u30a8\u30ea\u3092\u7de8\u96c6\u3059\u308b\u3053\u3068\u306b\u3088\u308a\u3001\u72ec\u81ea\u306e\u30bd\u30fc\u30c8\u304a\u3088\u3073\u30d5\u30a3\u30eb\u30bf\u6761\u4ef6\u3092\u5b9a\u7fa9\u3067\u304d\u307e\u3059\u3002\u30af\u30a8\u30ea\u3092\u5909\u66f4\u3059\u308b\u306b\u306f\u3001\u2018\u8a2d\u5b9a\u2019\u30a2\u30a4\u30b3\u30f3\u3092\u30af\u30ea\u30c3\u30af\u3057\u307e\u3059\u3002<\/p>\n
\u4ee5\u4e0b\u306f\u3001\u30e6\u30fc\u30b6\u30fc\u30af\u30a8\u30ea\u306e\u4f8b\u3067\u3059\u3002<\/p>\n
\r\nSELECT user, count(user) as no_of_queries, max(time) as running_longest\r\nFROM [processlist]\r\nWHERE ((user <> 'Monyog_user') and (command <> 'Sleep'))\r\nGROUP BY user;\r\n<\/pre>\n\u6ce8\u610f<\/h4>\n
\u6587\u5b57\u5217\u306e\u6bd4\u8f03\u306fSQLite\u3067\u306f\u5927\u6587\u5b57\u3068\u5c0f\u6587\u5b57\u304c\u533a\u5225\u3055\u308c\u3001MySQL\u306e\u30d0\u30c3\u30af\u30af\u30aa\u30fc\u30c8\u3068\u540c\u69d8\u306bSQLite\u3067\u306f[\u89d2\u62ec\u5f27]\u306e\u4f7f\u7528\u306b\u6ce8\u610f\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n
SELECT\u30b9\u30c6\u30fc\u30c8\u30e1\u30f3\u30c8\u3092\u4f7f\u7528\u3057\u3066SHOW FULL PROCESSLIST\u30b3\u30de\u30f3\u30c9\u306e\u30b5\u30dd\u30fc\u30c8\u3092\u5b9f\u88c5\u3059\u308b\u3068\u3001\u30b3\u30de\u30f3\u30c9\u81ea\u4f53\u3088\u308a\u3082\u51fa\u529b\u306b\u5bfe\u3059\u308b\u67d4\u8edf\u6027\u304c\u5411\u4e0a\u3057\u307e\u3059\u3002<\/p>\n
<\/p>\n
\u6ce8\u610f<\/h4>\n
\u3053\u306e\u6a5f\u80fd\u306f\u3001Monyog Professional\u3001Enterprise\u304a\u3088\u3073Ultimate\u3067\u5229\u7528\u3067\u304d\u307e\u3059\u3002<\/p>\n
<\/p>\n","protected":false},"excerpt":{"rendered":"
\u9ad8\u5ea6\u306a\u30d5\u30a3\u30eb\u30bf\u30ea\u30f3\u30b0\u30aa\u30d7\u30b7\u30e7\u30f3 \u30b9\u30ec\u30c3\u30c9\u306e\u8868\u793a\u306f\u3001\u7d44\u307f\u8fbc\u307f\u30c7\u30fc\u30bf\u30d9\u30fc… <\/p>\n