Hi,
Where does $sth come from, other than C&P from the doc?
To quote the DBI doc: 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.
Hope this helps!
In reply to Re: Perl Not returning SQL query result
by 1nickt
in thread Perl Not returning SQL query result
by santoo
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |