|
|
|
(Perl) Вопрос по нескольким запросам подряд к базе через DBI
|
|||
|---|---|---|---|
|
#18+
Делаю два запроса, чередующиеся finish: #филиалы my $sql = "SELECT id_filial, code_filial, filial_name FROM filials"; my $sth = $dbh->prepare($sql); $sth->execute(); $iCount=0; while (($id_filials[$iCount], $code_filial[$iCount], $filials[$iCount]) = $sth->fetchrow_array) { $iCount++; } $sth->finish; #операторы my $sql = "SELECT id_operator, oper_name FROM operators"; $sth->execute(); $jCount=0; while (($id_operator[$jCount], $oper_name[$jCount]) = $sth->fetchrow_array) { $jCount++; } $sth->finish; Когда вывожу @oper_name в popup_menu, в нём оказываются значения из @code_filial. В чём фича? ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 26.07.2005, 10:45 |
|
||
|
|

start [/forum/topic.php?fid=23&fpage=465&tid=1477905]: |
0ms |
get settings: |
7ms |
get forum list: |
16ms |
check forum access: |
3ms |
check topic access: |
3ms |
track hit: |
39ms |
get topic data: |
8ms |
get forum data: |
2ms |
get page messages: |
31ms |
get tp. blocked users: |
1ms |
| others: | 209ms |
| total: | 319ms |

| 0 / 0 |
