|
|
ru.perl- RU.PERL ---------------------------------------------------------------------- From : alexander smishlajev 2:5100/14.8 30 Apr 2000 12:11:44 To : Serge Cherpatyuk Subject : DBI (rows) -------------------------------------------------------------------------------- thursday april 27 2000, Serge Cherpatyuk writes to All: SC> Одним местом чувствую, что после $sth->execute где-то SC> должно сидеть количество возвращаемых запросом строк SC> и не могу это "где-то" найти. И perldoc DBI мне не SC> помогает, может тут помогут? perldoc помогает только если его читать. а написано там вот что: === begin cut === 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. For select statements execute simply 'starts' the query within the Engine. Use one of the fetch methods to retreive the data after calling execute. The >execute method does not return the number of rows that >will be returned by the query (because most Engines >can't tell in advance), it simply returns a true value. ==== end cut ==== желаю здравствовать, alex. --- GoldED 3.0.1 * Origin: ни хpена, киpюха, мы ее чеpез суд уматеpим! (FidoNet 2:5100/14.8) Вернуться к списку тем, сортированных по: возрастание даты уменьшение даты тема автор
Архивное /ru.perl/22435390c2395.html, оценка из 5, голосов 10
|