|
As table (TalbeA):
id title addtime
1 abc 2016-2-3
.
.
.
Need to take seven pieces of data:
Take seven data from addtime today. If it is insufficient, take yesterday's data. Otherwise, take the past 2 days, and so on, and make sure to make up seven data.
Thank you! |
|