mirror of
https://github.com/fofolee/uTools-Manuals.git
synced 2026-03-09 07:20:30 +08:00
0.0.1
This commit is contained in:
95
docs/php/mssql_rows_affected.html
Normal file
95
docs/php/mssql_rows_affected.html
Normal file
@@ -0,0 +1,95 @@
|
||||
<!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>Returns the number of records affected by the query</title>
|
||||
</head>
|
||||
<body class="docs"><div id="layout">
|
||||
<div id="layout-content"><div id="function.mssql-rows-affected" class="refentry">
|
||||
<div class="refnamediv">
|
||||
<h1 class="refname">mssql_rows_affected</h1>
|
||||
<p class="verinfo">(PHP 4 >= 4.0.4, PHP 5, PECL odbtp >= 1.1.1)</p><p class="refpurpose"><span class="refname">mssql_rows_affected</span> — <span class="dc-title">Returns the number of records affected by the query</span></p>
|
||||
|
||||
</div>
|
||||
|
||||
<div id="function.mssql-rows-affected-refsynopsisdiv">
|
||||
<div class="warning"><strong class="warning">Warning</strong>
|
||||
|
||||
<p class="para">
|
||||
This function was <em class="emphasis">REMOVED</em> in PHP 7.0.0.
|
||||
</p>
|
||||
<p class="para">
|
||||
Alternatives to this function include:
|
||||
</p>
|
||||
|
||||
<ul class="simplelist">
|
||||
<li class="member"><span class="function"><a href="pdostatement.rowcount.html" class="function">PDOStatement::rowCount()</a></span></li>
|
||||
<li class="member"><span class="function"><a href="sqlsrv_rows_affected.html" class="function">sqlsrv_rows_affected()</a></span></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="refsect1 description" id="refsect1-function.mssql-rows-affected-description">
|
||||
<h3 class="title">说明</h3>
|
||||
<div class="methodsynopsis dc-description">
|
||||
<span class="methodname"><strong>mssql_rows_affected</strong></span>
|
||||
( <span class="methodparam"><span class="type">resource</span> <code class="parameter">$link_identifier</code></span>
|
||||
) : <span class="type">int</span></div>
|
||||
|
||||
<p class="para rdfs-comment">
|
||||
Returns the number of records affected by the last write query.
|
||||
</p>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="refsect1 parameters" id="refsect1-function.mssql-rows-affected-parameters">
|
||||
<h3 class="title">参数</h3>
|
||||
<p class="para">
|
||||
<dl>
|
||||
|
||||
|
||||
<dt>
|
||||
<code class="parameter">link_identifier</code></dt>
|
||||
|
||||
<dd>
|
||||
|
||||
<p class="para">
|
||||
A MS SQL link identifier, returned by
|
||||
<span class="function"><a href="mssql_connect.html" class="function">mssql_connect()</a></span> or
|
||||
<span class="function"><a href="mssql_pconnect.html" class="function">mssql_pconnect()</a></span>.
|
||||
</p>
|
||||
</dd>
|
||||
|
||||
|
||||
</dl>
|
||||
|
||||
</p>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="refsect1 returnvalues" id="refsect1-function.mssql-rows-affected-returnvalues">
|
||||
<h3 class="title">返回值</h3>
|
||||
<p class="para">
|
||||
Returns the number of records affected by last operation.
|
||||
</p>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="refsect1 examples" id="refsect1-function.mssql-rows-affected-examples">
|
||||
<h3 class="title">范例</h3>
|
||||
<p class="para">
|
||||
<div class="example" id="example-1775">
|
||||
<p><strong>Example #1 <span class="function"><strong>mssql_rows_affected()</strong></span> example</strong></p>
|
||||
<div class="example-contents">
|
||||
<div class="phpcode"><pre><span style="color: #000000">
|
||||
<span style="color: #0000BB"><?php<br /></span><span style="color: #FF8000">// Delete all rows in a table<br /></span><span style="color: #0000BB">mssql_query</span><span style="color: #007700">(</span><span style="color: #DD0000">'TRUNCATE TABLE [php].[dbo].[persons]'</span><span style="color: #007700">);<br /><br />echo </span><span style="color: #DD0000">'Deleted ' </span><span style="color: #007700">. </span><span style="color: #0000BB">mssql_rows_affected</span><span style="color: #007700">(</span><span style="color: #0000BB">$link</span><span style="color: #007700">) . </span><span style="color: #DD0000">' row(s)'</span><span style="color: #007700">;<br /></span><span style="color: #0000BB">?></span>
|
||||
</span>
|
||||
</pre></div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</p>
|
||||
</div>
|
||||
|
||||
|
||||
</div></div></div></body></html>
|
||||
Reference in New Issue
Block a user