Link to home
Start Free TrialLog in
Avatar of jazzman1
jazzman1

asked on

store the count to a variable

How does one store the count of the following statement to a variable?
 
Select count(*) from mytable

Thanks
Avatar of bga6418
bga6418

It sure depends on what type of DB connection you have, but in general it is a define.
For example if you use c++ and OCI to connect to Oracle DB, you would use OCIDefineByPos().

You have to post what API and language you use to get specific code example.
ASKER CERTIFIED SOLUTION
Avatar of dba9i_barak
dba9i_barak

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial