Тема: Курсоры
Показать сообщение отдельно
Старый 12.04.2004, 15:26   #10  
france is offline
france
Участник
 
159 / 11 (1) +
Регистрация: 24.11.2003
Адрес: Москва
Хотите сказать, что если будет такой код
PHP код:
static void cursorTest(Args _args
{
InventTable             it;    
int                     i 0;    
;    
select  it;    
while (
it.recId != 0)    
 {        
i++;        
         print(
strFmt("%1"it.RecId));        
         
next it;    
 }    
 print 
strFmt("Всего- %1"i)); 

запроса к БД не будет.
А если использовать тот же код но с параметром Reverse в Select:
PHP код:
static void cursorTest(Args _args
{
InventTable             it;    
int                     i 0;    
;    
select reverse it;    
while (
it.recId != 0)    
 {        
i++;        
         print(
strFmt("%1"it.RecId));        
         
next it;    
 }    
 print 
strFmt("Всего- %1"i)); 

то будет запрос к БД?