一些些的code、一點點的Life,這就是生活。
最近幫朋友解決一個小mysql問題,其實不是甚麼難的
他就是只是想要根據每一天來統計一下說log數量有多少
其實sql語法不難
1 2 3 | SELECT DATE_FORMAT( Registertime, '%Y-%m-%d' ) , COUNT( DATE_FORMAT( Registertime, '%Y-%m-%d' ) ) FROM register GROUP BY DATE_FORMAT( Registertime, '%Y-%m-%d' ) |
出來就會是這樣了。
一個不務正業,甚麼科技產品都玩的網路宅宅。 If you want to find me,that's easy! I will always on the Internet. so just find me, follow me. I will show you everything fun.