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!

can I run SQL on an existing query?

Status
Not open for further replies.

KJS2002

Programmer
Joined
Jul 15, 2002
Messages
11
Location
GB
I'm querying mySQL tables quite happily from a Java application but ....
If a create a query in mySQL itself can I then save it somewhere on the server and then run a query on that saved query!

... or would it be best to just build the entire query into one SQL statement and run that from the client.

(Basically I can't work out how/where mySQL saves queries and how to point to them.)
 
i don't think mysql provides such functionality
you'll need to create the complete sql statement and with it query the server
 
i thought that was probably the case. thanks.
 
Hmmm I am quite a newbie with MySQL , but if that was the case with Standard SQL, you could create a VIEW. It's like a saved query. I did that on Oracle I don't know if that would be applicable in MySQL

check this out :
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top