|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Get inside! Sample the range of functionality easily built with JMSL Library for Time Series Data Analysis, Heat Maps, Portfolio Optimization, Monte Carlo Simulation, Stock Price Charting and more. Download Now! |
|
#1
|
|||
|
|||
|
Is it possible to get the number of rows returned by a specific search with Perl DBI?
Thanks http://www.datera.com |
|
#2
|
||||
|
||||
|
hi,
you can find out the number of rows returned by a specific search with Perl DBI. use the following for a select statement: $rv=$sth->execute; use the "rows" method to find out return row for non-SELECT statements. rows: Returns the number of rows changed (updated, deleted, etc.) by the last command. This is usually used after a non-SELECT execute statement. Example: $rv = $sth->rows; |
![]() |
| Viewing: Dev Shed Forums > Databases > MySQL Help > Getting the number of rows (with Perl DBI)? |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|