-
-
Notifications
You must be signed in to change notification settings - Fork 594
Qt_script_count
Paweł Salawa edited this page Jan 15, 2018
·
3 revisions
Language: | Qt Script |
---|---|
Plugin for language: | ScriptingQt |
How to use: | Create custom SQL function, set it to "aggregate" type. Suggested name: cnt |
Function arguments | Keep undefined |
Function usage: | SELECT cnt(*) from tableName |
Description: | Works just like classical count(*) from SQL. |
Initialization code:
n=0;
Per step code:
n++;
Final step code:
return n;