uTools-Manuals/docs/php/pg_lo_create.html
2019-04-28 19:00:34 +08:00

34 lines
2.2 KiB
HTML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<title>新建一个大型对象</title>
</head>
<body class="docs"><div id="layout">
<div id="layout-content"><div id="function.pg-lo-create" class="refentry">
<div class="refnamediv">
<h1 class="refname">pg_lo_create</h1>
<p class="verinfo">(PHP 4 &gt;= 4.2.0, PHP 5, PHP 7)</p><p class="refpurpose"><span class="refname">pg_lo_create</span> &mdash; <span class="dc-title">新建一个大型对象</span></p>
</div>
<div class="refsect1 unknown-unknown-unknown-seealsr" id="refsect1-function.pg-lo-create-unknown-unknown-unknown-seealsr">
<h3 class="title">说明</h3>
<div class="methodsynopsis dc-description">
<span class="methodname"><strong>pg_lo_create</strong></span>
( <span class="methodparam"><span class="type">resource</span> <code class="parameter">$connection</code></span>
) : <span class="type">int</span></div>
<p class="para rdfs-comment">
<span class="function"><strong>pg_lo_create()</strong></span> 新建一个大型对象并返回该大型对象的 <var class="varname"><var class="varname">oid</var></var><code class="parameter">connection</code> 指定了由 <span class="function"><a href="pg_connect.html" class="function">pg_connect()</a></span><span class="function"><a href="pg_pconnect.html" class="function">pg_pconnect()</a></span> 打开的有效的数据库连接号。不支持 PostgreSQL 访问模式 INV_READINV_WRITE 和 INV_ARCHIVE该对象总是以读写方式访问。INV_ARCHIVE 已经从 PostgreSQL 中删除了6.3 及以上版本)。本函数返回大型对象的 oid如果出错则返回 <strong><code>FALSE</code></strong>
</p>
<p class="para">
要使用大型对象lo接口需要将其放置在事务块中。
</p>
<blockquote class="note"><p><strong class="note">Note</strong>:
<p class="para">
本函数以前的名字为 <em>pg_locreate()</em>
</p>
</p></blockquote>
</div>
</div></div></div></body></html>