我正在尝试构建我的hugo站点,但是当我运行hugo check时,我会看到以下错误日志:
ERROR: 2017/09/10 Current theme does not support Hugo version 0.14. Minimum version required is 0.18
ERROR: 2017/09/10 template: theme/_default/baseof.html:2: function "default" not defined
ERROR: 2017/09/10 template: redefinition of template
我有一个sql view,它看起来像下面的数据
leadId status statusTime
--------------------------
1361 new 2017-06-12 11:57:33
1358 new 2017-06-12 11:20:46
1358 warm 2017-06-12 11:21:20
1358 closed 2017-06-12 11:56:57
您可以看到leadId 1358有3 lead status,最后一个是latest。所以我想要下表所示的记录
leadId status status
让我们以这个select为例:
Select date, sum(field1), max(field2)
from table
group by date
order by date
假设在我的表中,每个日期都有2-3行,所以:
| date | field1 | field2 |
-------------------------------
|01-01-2017| 4 | 34 |
|01-01-2017| 5 | 37 |
|01-01-2017| 3 | 33 |
|01-02-2017| 15 |
我正在Ubuntu16.10上第一次安装mongodb。我已经成功地安装了它,但是当我试图运行它时,我得到了这个错误。当我在终端上输入mongo时
MongoDB shell version v3.4.2
connecting to: mongodb://127.0.0.1:27017
MongoDB server version: 3.4.2
Server has startup warnings:
2017-03-21T22:29:13.268+0700 I STORAGE [initandlisten]
2017-03-21T22:29:13.268+0700 I STORAGE