Source of: /manual/en/mssql.constants.php
<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/book.mssql.inc";
$setup = array (
'home' =>
array (
0 => 'index.php',
1 => 'PHP Manual',
),
'head' =>
array (
0 => 'UTF-8',
1 => 'en',
),
'this' =>
array (
0 => 'mssql.constants.php',
1 => 'Predefined Constants',
),
'up' =>
array (
0 => 'book.mssql.php',
1 => 'Microsoft SQL Server',
),
'prev' =>
array (
0 => 'mssql.resources.php',
1 => 'Resource Types',
),
'next' =>
array (
0 => 'ref.mssql.php',
1 => 'Mssql Functions',
),
);
$setup["toc"] = $TOC;
$setup["parents"] = $PARENTS;
manual_setup($setup);
manual_header();
?>
<div>
<h1>Predefined Constants</h1>
<p class="simpara">
The constants below are defined by this extension, and
will only be available when the extension has either
been compiled into PHP or dynamically loaded at runtime.
</p>
<dl>
<dt class="varlistentry">
<span class="term">
<b><tt class="constant">MSSQL_ASSOC</tt></b>
(<a href="language.types.integer.php" class="type integer">integer</a>)
</span>
</dt><dd class="listitem">
<span class="simpara">
Return an associative array. Used on
<a href="function.mssql-fetch-array.php" class="function">mssql_fetch_array()</a>'s
<i>result_type</i> parameter.
</span>
</dd>
<dt class="varlistentry">
<span class="term">
<b><tt class="constant">MSSQL_NUM</tt></b>
(<a href="language.types.integer.php" class="type integer">integer</a>)
</span>
</dt><dd class="listitem">
<span class="simpara">
Return an array with numeric keys. Used on
<a href="function.mssql-fetch-array.php" class="function">mssql_fetch_array()</a>'s
<i>result_type</i> parameter.
</span>
</dd>
<dt class="varlistentry">
<span class="term">
<b><tt class="constant">MSSQL_BOTH</tt></b>
(<a href="language.types.integer.php" class="type integer">integer</a>)
</span>
</dt><dd class="listitem">
<span class="simpara">
Return an array with both numeric keys and
keys with their field name. This is the
default value for <a href="function.mssql-fetch-array.php" class="function">mssql_fetch_array()</a>'s
<i>result_type</i> parameter.
</span>
</dd>
<dt class="varlistentry">
<span class="term">
<b><tt class="constant">SQLTEXT</tt></b>
(<a href="language.types.integer.php" class="type integer">integer</a>)
</span>
</dt><dd class="listitem">
<span class="simpara">
Indicates the '<i>TEXT</i>' type in MSSQL, used by
<a href="function.mssql-bind.php" class="function">mssql_bind()</a>'s <i>type</i>
parameter.
</span>
</dd>
<dt class="varlistentry">
<span class="term">
<b><tt class="constant">SQLVARCHAR</tt></b>
(<a href="language.types.integer.php" class="type integer">integer</a>)
</span>
</dt><dd class="listitem">
<span class="simpara">
Indicates the '<i>VARCHAR</i>' type in MSSQL, used by
<a href="function.mssql-bind.php" class="function">mssql_bind()</a>'s <i>type</i>
parameter.
</span>
</dd>
<dt class="varlistentry">
<span class="term">
<b><tt class="constant">SQLCHAR</tt></b>
(<a href="language.types.integer.php" class="type integer">integer</a>)
</span>
</dt><dd class="listitem">
<span class="simpara">
Indicates the '<i>CHAR</i>' type in MSSQL, used by
<a href="function.mssql-bind.php" class="function">mssql_bind()</a>'s <i>type</i>
parameter.
</span>
</dd>
<dt class="varlistentry">
<span class="term">
<b><tt class="constant">SQLINT1</tt></b>
(<a href="language.types.integer.php" class="type integer">integer</a>)
</span>
</dt><dd class="listitem">
<span class="simpara">
Represents one byte, with a range of -128 to 127.
</span>
</dd>
<dt class="varlistentry">
<span class="term">
<b><tt class="constant">SQLINT2</tt></b>
(<a href="language.types.integer.php" class="type integer">integer</a>)
</span>
</dt><dd class="listitem">
<span class="simpara">
Represents two bytes, with a range of -32768
to 32767.
</span>
</dd>
<dt class="varlistentry">
<span class="term">
<b><tt class="constant">SQLINT4</tt></b>
(<a href="language.types.integer.php" class="type integer">integer</a>)
</span>
</dt><dd class="listitem">
<span class="simpara">
Represents four bytes, with a range of -2147483648
to 2147483647.
</span>
</dd>
<dt class="varlistentry">
<span class="term">
<b><tt class="constant">SQLBIT</tt></b>
(<a href="language.types.integer.php" class="type integer">integer</a>)
</span>
</dt><dd class="listitem">
<span class="simpara">
Indicates the '<i>BIT</i>' type in MSSQL, used by
<a href="function.mssql-bind.php" class="function">mssql_bind()</a>'s <i>type</i>
parameter.
</span>
</dd>
<dt class="varlistentry">
<span class="term">
<b><tt class="constant">SQLFLT4</tt></b>
(<a href="language.types.integer.php" class="type integer">integer</a>)
</span>
</dt><dd class="listitem">
<span class="simpara">
Represents an four byte float.
</span>
</dd>
<dt class="varlistentry">
<span class="term">
<b><tt class="constant">SQLFLT8</tt></b>
(<a href="language.types.integer.php" class="type integer">integer</a>)
</span>
</dt><dd class="listitem">
<span class="simpara">
Represents an eight byte float.
</span>
</dd>
</dl>
</div>
<?php manual_footer(); ?>