Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How can I put the result of a SQL sentence in a variable???

Status
Not open for further replies.

colosoderada

Programmer
Sep 14, 2000
26
ES
Hi everybody, my problem is that I have a sentence in SQL

Select Count(*) from TABLA where Name = Peter

and I need know the result of this sentence, I would like the result in a variable.

How can i do it???

Any idea????

Thank you in advance.

Sorry for my english. (I´m spanish).
 
Use the method SQL_Exec in the class TQuery.


hnd
hasso55@yahoo.com

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top