Главная страница


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)
 
 

Вернуться к списку тем, сортированных по: возрастание даты  уменьшение даты  тема  автор 

 Тема:    Автор:    Дата:  
 DBI (rows)   Serge Cherpatyuk   27 Apr 2000 11:47:51 
 Re: DBI (rows)   Alex Lazarev   28 Apr 2000 07:45:38 
 DBI (rows)   Oleg Bakiev   28 Apr 2000 11:01:39 
 DBI (rows)   alexander smishlajev   30 Apr 2000 12:11:44 
Архивное /ru.perl/22435390c2395.html, оценка 2 из 5, голосов 10
Яндекс.Метрика
Valid HTML 4.01 Transitional