With SQL Server, I can send
SELECT * FROM FOO SELECT * FROM BAR
to the server and get back the results of both, all in one trip.
Can I do that with mySQL also?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I can only speak about the mysqli-extension for PHP, but I guess the same will be possible with most mysql-libraries. In PHP, you can send multiple queries, like
with
mysqli_multi_query()and iterate through the result-sets withmysqli_next_result().