in reply to Perl Not returning SQL query result
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!
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Perl Not returning SQL query result
by santoo (Initiate) on May 11, 2021 at 15:25 UTC | |
by erix (Prior) on May 11, 2021 at 16:43 UTC | |
by Marshall (Canon) on May 12, 2021 at 19:29 UTC |