MySQL Forums
Forum List  »  Perl

Re: executing an SQL statement
Posted by: Lois Kim
Date: April 24, 2007 11:39AM

Randy,

I was wondering if it's possible to put two SELECT statement in $dbh->prepare() so that I can separate my queries for each tables, something like....

$dbh->prepare ("SELECT RPAD(myfield1,10,' ') FROM Table1 WHERE ....".
"SELECT RPAD(myfield2,10,' ') FROM Table2 WHERE ....")

I've tried and it was not working.
Is there any other way?

Lois K.

Options: ReplyQuote


Subject
Written By
Posted
April 10, 2007 04:15PM
April 11, 2007 10:02AM
April 11, 2007 03:56PM
April 11, 2007 10:08AM
April 13, 2007 12:26PM
April 17, 2007 04:26PM
April 18, 2007 12:30PM
April 18, 2007 04:02PM
April 23, 2007 04:08PM
April 24, 2007 09:20AM
Re: executing an SQL statement
April 24, 2007 11:39AM
April 24, 2007 02:26PM
April 24, 2007 02:20PM
April 24, 2007 02:31PM
April 24, 2007 03:57PM
April 25, 2007 11:46PM


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.