Discussion:
SELECT COUNT(*) into variable
(too old to reply)
John Cosmas
2005-06-15 17:53:33 UTC
Permalink
How do I run a SELECT COUNT(*) and put the results into a variable in code?
Jack Jackson
2005-06-15 18:32:37 UTC
Permalink
On Wed, 15 Jun 2005 12:53:33 -0500, "John Cosmas"
Post by John Cosmas
How do I run a SELECT COUNT(*) and put the results into a variable in code?
You can either use INTO ARRAY, or use the COUNT command instead of
SELECT.

Don't post into multiple newsgroups - almost everyone here reads them
all.
newboy
2005-08-12 01:10:20 UTC
Permalink
you can also use the _tally variable to get the records count after you use
the SELECT or other SQL statment.
Post by John Cosmas
How do I run a SELECT COUNT(*) and put the results into a variable in code?
Loading...