Difference between revisions of "SQLCNT"
From Recital Documentation Wiki
Helengeorge (Talk | contribs) |
Yvonnemilne (Talk | contribs) |
||
(One intermediate revision by one user not shown) | |||
Line 12: | Line 12: | ||
==Description== | ==Description== | ||
− | + | SQLCNT will return the number of rows affected by the last SQL statement. For example, after a SELECT statement, SQLCNT will contain the number of rows selected. | |
− | + | ||
− | + | ||
==Example== | ==Example== | ||
<code lang="recital"> | <code lang="recital"> | ||
− | + | OPEN DATABASE southwind | |
− | + | SELECT * FROM example WHERE state = "MA" | |
− | + | ? sqlcnt | |
− | SELECT | + | 17 |
− | FROM | + | |
− | WHERE | + | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
</code> | </code> | ||
==Products== | ==Products== | ||
− | Recital | + | Recital, Recital Server |
[[Category:Documentation]] | [[Category:Documentation]] | ||
[[Category:SQL]] | [[Category:SQL]] | ||
[[Category:Pseudo Columns]] | [[Category:Pseudo Columns]] |
Latest revision as of 14:51, 5 July 2011
Purpose
Return the number of rows affected by the last SQL statement
Syntax
SQLCNT
See Also
PSEUDO COLUMNS, INSERT, SELECT, UPDATE
Description
SQLCNT will return the number of rows affected by the last SQL statement. For example, after a SELECT statement, SQLCNT will contain the number of rows selected.
Example
OPEN DATABASE southwind SELECT * FROM example WHERE state = "MA" ? sqlcnt 17
Products
Recital, Recital Server