Thread DBD::SQLite - Anzahl Zeilen abfragen (21 answers)
Opened by Kean at 2011-05-09 09:16

Linuxer
 2011-05-09 11:41
#148355 #148355
User since
2006-01-27
3872 Artikel
HausmeisterIn

user image
Hm, so genau weiß ich es gerade nicht. Fiel mir nur auf die Schnelle beim Mitlesen ein...

*such*

Du hast recht, das "See below" in Deinem Perldoc-Zitat ist entscheidend:

Der Folgeabsatz zu Deinem zitierten ...
perldoc DBI
For a non-SELECT statement, execute returns the number of rows affected, if known. If no rows were affected, then execute returns "0E0", which Perl will treat as 0 but will regard as true. Note that it is not an error for no rows to be affected by a statement. If the number of rows affected is not known, then execute returns -1.
meine Beiträge: I.d.R. alle Angaben ohne Gewähr und auf Linux abgestimmt!
Die Sprache heisst Perl, nicht PERL. - Bitte Crossposts als solche kenntlich machen!

View full thread DBD::SQLite - Anzahl Zeilen abfragen