[pgsql-jp: 32130] Re: Cursor に入っている行数のカウント

親善 minami @ shinzen.jp
2004年 1月 27日 (火) 19:54:28 JST


親善です。

$hDB= pg_connect("host=localhost dbname=hoge port=5432 user=postgres
password=postgres");
$res = pg_exec($hDB,"select * from hoge");
$row = pg_numrows($res);

if($row < 1000):

for ...............{
A;
}

elseif($row > 1000):

for ...............{
B;
}

else:
endif;

ではだめなんですか?




pgsql-jp メーリングリストの案内