MySQL Forums
Forum List  »  Perl

Re: execute multiple quries at one shot with DBI/DBD?
Posted by: David Shrewsbury
Date: September 06, 2007 06:07AM

I'm pretty sure there is nothing similar in Perl DBI, but your example does not require multiple statements. Change it to:
SELECT name
FROM tableA
WHERE (X < 2 AND Y > 3) OR (X < 4 AND Y > 5)
If selecting the same info, but from different tables, use UNION ALL.

-Dave

Options: ReplyQuote


Subject
Written By
Posted
Re: execute multiple quries at one shot with DBI/DBD?
September 06, 2007 06:07AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.