function.fbsql-set-lob-mode.html
来自「php的帮助文档,涉及到PHP的案例和基本语法,以及实际应用内容」· HTML 代码 · 共 123 行
HTML
123 行
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"><html> <head> <title>Set the LOB retrieve mode for a FrontBase result set</title> <meta http-equiv="content-type" content="text/html; charset=UTF-8"> </head> <body><div style="text-align: center;"> <div class="prev" style="text-align: left; float: left;"><a href="function.fbsql-set-characterset.html">fbsql_set_characterset</a></div> <div class="next" style="text-align: right; float: right;"><a href="function.fbsql-set-password.html">fbsql_set_password</a></div> <div class="up"><a href="ref.fbsql.html">FrontBase Functions</a></div> <div class="home"><a href="index.html">PHP Manual</a></div></div><hr /><div id="function.fbsql-set-lob-mode" class="refentry"> <div class="refnamediv"> <h1 class="refname">fbsql_set_lob_mode</h1> <p class="verinfo">(PHP 4 >= 4.2.0, PHP 5)</p><p class="refpurpose"><span class="refname">fbsql_set_lob_mode</span> — <span class="dc-title">Set the LOB retrieve mode for a FrontBase result set</span></p> </div> <div class="refsect1 description"> <h3 class="title">Description</h3> <div class="methodsynopsis dc-description"> <span class="type">bool</span> <span class="methodname"><b><b>fbsql_set_lob_mode</b></b></span> ( <span class="methodparam"><span class="type">resource</span> <tt class="parameter">$result</tt></span> , <span class="methodparam"><span class="type">int</span> <tt class="parameter">$lob_mode</tt></span> )</div> <p class="para rdfs-comment"> Sets the mode for retrieving LOB data from the database. </p> <p class="para"> When BLOB and CLOB data is retrieved in FrontBase it can be retrieved direct or indirect. Direct retrieved LOB data will always be fetched no matter the setting of the lob mode. If the LOB data is less than 512 bytes it will always be retrieved directly. </p> </div> <div class="refsect1 parameters"> <h3 class="title">Parameters</h3> <p class="para"> <dl> <dt><span class="term"><i><tt class="parameter">result</tt></i></span><dd><p class="para">A result identifierreturned by <a href="function.fbsql-query.html" class="function">fbsql_query()</a> or <a href="function.fbsql-db-query.html" class="function">fbsql_db_query()</a>.</p></dd></dt> <dt> <span class="term"><i><tt class="parameter">lob_mode</tt></i></span> <dd> <p class="para"> Can be one of: <ul class="itemizedlist"> <li class="listitem"> <span class="simpara"> <b><tt>FBSQL_LOB_DIRECT</tt></b> - LOB data is retrieved directly. When data is fetched from the database with <a href="function.fbsql-fetch-row.html" class="function">fbsql_fetch_row()</a>, and other fetch functions, all CLOB and BLOB columns will be returned as ordinary columns. This is the default value on a new FrontBase result. </span> </li> <li class="listitem"> <span class="simpara"> <b><tt>FBSQL_LOB_HANDLE</tt></b> - LOB data is retrieved as handles to the data. When data is fetched from the database with <a href="function.fbsql-fetch-row.html" class="function">fbsql_fetch_row()</a>, and other fetch functions, LOB data will be returned as a handle to the data if the data is stored indirect or the data if it is stored direct. If a handle is returned it will be a 27 byte string formatted as <i>@'000000000000000000000000'</i>. </span> </li> </ul> </p> </dd> </dt> </dl> </p> </div> <div class="refsect1 returnvalues"> <h3 class="title">Return Values</h3> <p class="para"> Returns <b><tt>TRUE</tt></b> on success or <b><tt>FALSE</tt></b> on failure. </p> </div> <div class="refsect1 seealso"> <h3 class="title">See Also</h3> <p class="para"> <ul class="simplelist"> <li class="member"><a href="function.fbsql-create-blob.html" class="function" rel="rdfs-seeAlso">fbsql_create_blob()</a></li> <li class="member"><a href="function.fbsql-create-clob.html" class="function" rel="rdfs-seeAlso">fbsql_create_clob()</a></li> <li class="member"><a href="function.fbsql-read-blob.html" class="function" rel="rdfs-seeAlso">fbsql_read_blob()</a></li> <li class="member"><a href="function.fbsql-read-clob.html" class="function" rel="rdfs-seeAlso">fbsql_read_clob()</a></li> </ul> </p> </div></div><hr /><div style="text-align: center;"> <div class="prev" style="text-align: left; float: left;"><a href="function.fbsql-set-characterset.html">fbsql_set_characterset</a></div> <div class="next" style="text-align: right; float: right;"><a href="function.fbsql-set-password.html">fbsql_set_password</a></div> <div class="up"><a href="ref.fbsql.html">FrontBase Functions</a></div> <div class="home"><a href="index.html">PHP Manual</a></div></div></body></html>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?