無料スクリプト配布のPHP.TO   PHPの実用的なtips PHPマニュアル MySQLマニュアル Apacheマニュアル PostgreSQLマニュアル マニュアル検索    

pg_lo_seek

(PHP 4 >= 4.2.0, PHP 5)

pg_lo_seek ?????

bool pg_lo_seek ( resource $large_object , int $offset [, int $whence = PGSQL_SEEK_CUR ] )

pg_lo_seek() ?????? ?

????????? ????

??

large_object

pg_lo_open() ? PostgreSQL ??(LOB)?

offset

?

whence

PGSQL_SEEK_SET?????? PGSQL_SEEK_CUR????? ? PGSQL_SEEK_END????? ??

?

? TRUE ?? FALSE ??

1 pg_lo_seek()

<?php
   $doc_oid 
189762345;
   
$database pg_connect("dbname=jacarta");
   
pg_query($database"begin");
   
$handle pg_lo_open($database$doc_oid"r");
   
// ? 50000 ???
   
pg_lo_seek($handle50000PGSQL_SEEK_SET);
   
//  10000 ???
   
$data pg_lo_read($handle10000);
   
pg_query($database"commit");
   echo 
$data;
?>

?

5.6.0 PostgreSQL 9.3 ??? 64 ?????? ?????? PostgreSQL 9.3 ?????? PHP 64 ????????



powered by SEO.CUG.NET