pg_lo_write

(PHP 4 >= 4.2.0, PHP 5, PHP 7, PHP 8)

pg_lo_write向大型對象寫入數(shù)據(jù)

說明

pg_lo_write(resource $large_object, string $data): int

pg_lo_write()data 參數(shù)中的數(shù)據(jù)盡可能多地寫入大型對象并返回實(shí)際寫入的字節(jié)數(shù)。如果出錯(cuò)則返回 falselarge_object 參數(shù)是 pg_lo_open() 函數(shù)所返回的大型對象資源號。

要使用大型對象(lo)接口,需要將其放置在事務(wù)塊中。

注意:

本函數(shù)以前的名字為 pg_lo_write()。

參見 pg_lo_create()pg_lo_open()。