diff --git a/docs/Functions.md b/docs/Functions.md index f23bea07..a74f4af7 100644 --- a/docs/Functions.md +++ b/docs/Functions.md @@ -35,6 +35,11 @@ for (const auto& row : db(select(tab.name, avg(tab.value)) } ``` +Use `count(1)` for simply query row count: +```C++ +const int64_t n = db(select(count(1)).from(tab).unconditionally()).front().count; +``` + # Text Functions ## concat Just use the + operator :-)