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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Storing results of Select Statement

Status
Not open for further replies.
Mar 9, 2006
93
CA
I have a progress program where I query the database using a couple of select statements. My question is how do I store the data that is returned from a Select statement in progress so I can use it later on in the program?
Thanks
Matt
 
matt23lucier,
can you be a bit more specific?
you can store data in vars, temp tables, work tables, an external file an external db...
how much later?
how much data?
perhaps if you show the code or advise what you are attempting to do i'll be able to help.
regards,
longhair
 
longhair,
I am writing a program that I need to pull information from a database and keep it in a table for the length of the program. Usually when I do this I do it with several for each statements. This time it can be done with a simple Select statement. My question is as follows, is there a way to store the results of a select statement in a table?
Thanks
Matt
 
matt23lucier,
you could try to define a temp-table and set the fields to the results of your select statement.
i do not sql just straight 4gl so i do not know if it is possible.
regards,
longhair
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top