The DBI manpage says
A successful "execute" always returns true regardless of the number of rows affected, even if it’s zero
...
For "SELECT" statements, execute simply "starts" the query within the database engine. Use one of the fetch methods to retrieve the data after calling "execute". The "execute" method does not return the number of rows that will be returned by the query (because most databases can’t tell in advance), it simply returns a true value.
In reply to Re^3: Query works in sqlplus but not DBI
by moritz
in thread Query works in sqlplus but not DBI - Solved
by shadowfae
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |