- DBD::Pg - PostgreSQL database driver for the DBI module
- selectall_arrayref
$ary_ref = $dbh->selectall_arrayref($statement, \%attr, @bind_values);
- 不管select出來有沒有結果,
$ary_ref
都是defined.
- 不管select出來有沒有結果,
- selectrow_arrayref
$ary_ref = $dbh->selectrow_arrayref($statement, \%attr, @bind_values);
- 如果select出來沒有結果,
$ary_ref
不會是defined.
- 如果select出來沒有結果,
- selectrow_array
@row_ary = $dbh->selectrow_array($statement, \%attr, @bind_values);
- 如果select出來沒有結果,
row_ary
不會是defined.
- 如果select出來沒有結果,
- selectrow_hashref
$hash_ref = $dbh->selectrow_hashref($statement, \%attr, @bind_values);
- 如果select出來沒有結果,
$hash_ref
不會是defined.
- 如果select出來沒有結果,