Created
December 15, 2017 10:58
-
-
Save shyuan/7ef95ac136aa1ee9da18b5381c46d7b8 to your computer and use it in GitHub Desktop.
根據 timestamp 欄位,計算每日建立資料筆數
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SELECT DATE(FROM_UNIXTIME(`created_at`)) AS create_date, COUNT(id) AS count FROM xx_table GROUP BY create_date; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment