MySQLã§æ¥ä»æéãã¼ã¿å ¥ãã¦ãããã¼ã¿åã datetimeåã¯ãã使ãã¾ãããã ãã¼ã¿ã ããã£ã¦ãæ¥ä»å¥ã®éè¨ãå¿ è¦ã«ãªã£ã¦ãããã¨ãããã¾ãããã æ®éã«èãã¦éè¨ãããã¨ãããªãgroup by使ããã§ãã ãã®datetimeåãgroup by datetimeã¨ãã£ãå ´åã ç§ãããã®éè¤æ°ãæ°ãã¦ããã¦æ¥ã«ã¡å¥ã®éè¨ã¯è¡ã£ã¦ããã¾ããã ããã§ãsubstringé¢æ°ã substring(datetime,1,10) as date ã¨ãã㨠group by ã§ã使ãã¾ãã mysql> select id,board,dat,w,s,datetime from accesslog limit 100,1; +--------+----------+------------+------+------+--------------
{{#tags}}- {{label}}
{{/tags}}