♻️ SQL 关键字使用大小

This commit is contained in:
Liang Ding 2022-07-28 01:15:13 +08:00
parent 60bef349a0
commit 23c4d2ab61
No known key found for this signature in database
GPG key ID: 136F30F901A2231D

View file

@ -94,7 +94,7 @@ func getStat(key string) (ret string) {
}
func CountAllDoc() (ret int) {
sqlStmt := "SELECT count(*) FROM blocks WHERE type = 'd'"
sqlStmt := "SELECT COUNT(*) FROM blocks WHERE type = 'd'"
row := queryRow(sqlStmt)
row.Scan(&ret)
return