mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-16 22:50:13 +01:00
♻️ SQL 关键字使用大小
This commit is contained in:
parent
60bef349a0
commit
23c4d2ab61
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue