turumkhan has asked for the wisdom of the Perl Monks concerning the following question:
now i have to split the query at go and execute both the queries in the same order. the procedure which i am using is split at "go" using the split function and storing in an array. now i am accessing each element of the array and excuting it using the execute in DBI and getting the rows using fetch. but since the use database statement wont return rows its giving me eror at the fetch statment say no statment executed at that line. How do i stop it from giving me that error. I tried using if statement likeuse database go select * from table go
but still giving me that error on the line of fetch. Please help out of this grave problem. thanks - Turumkhanif (sth->fetch()) { code here }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: how to catch the query retunin no rows.
by Arguile (Hermit) on Jun 08, 2001 at 03:21 UTC |