command_paramcount.html

来自「能够连接各种数据库的API」· HTML 代码 · 共 169 行

HTML
169
字号
<html><head><meta name="KEYWORDS" content="      library, C++,       Oracle, SQLServer, DB2, Sybase, Informix, InterBase, SQLBase, ODBC, 
      SQL, server, client, database, programming, development, software, 
      Win32, Windows, Linux, Unix, Solaris,
      Microsoft, Borland, Centura, Gupta, IBM"><meta name="DESCRIPTION" content=
"SQLAPI++ is C++ library for accessing SQL databases (Oracle, SQLServer, Sybase, DB2, InterBase, SQLBase, Informix, ODBC).
It uses native APIs, provides low-level access to database-specific features."><title>SQLAPI++ Library - Online Documentation - SACommand::ParamCount</title></head><body bgcolor="#ffffff" BACKGROUND="../images/bg.gif" text="#000000"><!--GlbHdr--> <table WIDTH=600 height=40 frame=hsides BORDER="2" BORDERCOLOR="#004fcd" align="right" cellpadding="0" cellspacing="2" id="TABLE1">
    
    <tr><!--class="GlbDefault"-->        
        <td width=70 bgcolor=#000094 bordercolor=black align=middle><A href="../index.html" style="TEXT-DECORATION: none" >
			<font color=white size=3 face=sans-serif>
			<b>Home</b></font></A></td></TD>
        <td width=70 bgcolor=#000094 bordercolor=black align=middle><A href="../HowTo/index.html" style="TEXT-DECORATION: none" >			<font color=white size=3  
      face=sans-serif>
			<b>How To</b></font></A></td><!--class="GlbActive"-->
        <td width=70 bgcolor=#00bb00 bordercolor=black align=middle><A href="../OnLineDoc/index.html" style="TEXT-DECORATION: none" >			<font color=white size=3  
            face=sans-serif>
			<b>Online Documentation</b></font></A></td><!--class="GlbDefault"-->        
		<td width=70 bgcolor=#000094 bordercolor=black align=middle><A href="../Support/index.html" style="TEXT-DECORATION: none" >			<font color=white size=3  
            face=sans-serif>
			<b>Support</b></font></A></td>
        <td width=70 bgcolor=#000094 bordercolor=black align=middle>
			<A href="../Download/index.html" style="TEXT-DECORATION: none" >
			<font color=white size=3  
            face=sans-serif>
			<b>Download</b></font></A></td>
        <td width=70 bgcolor=#000094 bordercolor=black align=middle><A href="../Order/index.html" style="TEXT-DECORATION: none" >			<font color=white size=3  
      face=sans-serif>
			<b>Order</b></font></A></td>    </tr>
</table>&nbsp;

<p>&nbsp;</p>
<table width="100%">
	<tr>
		<td valign=top width=165><!--LeftMenu-->			
			<table frame=void CELLSPACING=5 width=165>
				<tr><td><p>&nbsp;</p></td>
				</tr>
				<tr>
					<td><img align=middle src="../images/red.gif" WIDTH="12" HEIGHT="12">				<A href="Command.html" style ="TEXT-DECORATION: none" >
					<font color=white size=2 face=sans-serif>
					SACommand</A> </FONT> </td>
				</tr>
				<tr>
					<td><img align=middle src="../images/green.gif" WIDTH="12" HEIGHT="12">				<A href="Connection.html" style ="TEXT-DECORATION: none" >
					<font color=white size=2 face=sans-serif>
					SAConnection</A> </FONT> </td>
				</tr>
				<tr>
					<td><img align=middle src="../images/green.gif" WIDTH="12" HEIGHT="12">				<A href="Exception.html" style ="TEXT-DECORATION: none" >
					<font color=white size=2 face=sans-serif>
					SAException</font></A> </td>
				</tr>
				<tr>
					<td><img align=middle src="../images/green.gif" WIDTH="12" HEIGHT="12">				<A href="Field.html" style ="TEXT-DECORATION: none" >
					<font color=white size=2 face=sans-serif>
					SAField</A> </FONT> </td>
				</tr>
				<tr>
					<td><img align=middle src="../images/green.gif" WIDTH="12" HEIGHT="12">				<A href="Param.html" style ="TEXT-DECORATION: none" >
					<font color=white size=2 face=sans-serif>
					SAParam</A> </FONT> </td>
				</tr>
				<tr><td><hr></td></tr>
				<tr>
					<td><img align=middle src="../images/green.gif" WIDTH="12" HEIGHT="12">
					<A href="String.html" style ="TEXT-DECORATION: none" >
					<font color=white size=2 face=sans-serif>
					SAString</A> </FONT> </td>
				</tr>
				<tr>
					<td><img align=middle src="../images/green.gif" WIDTH="12" HEIGHT="12">
					<A href="DateTime.html" style ="TEXT-DECORATION: none" >
					<font color=white size=2 face=sans-serif>
					SADateTime</A> </FONT> </td>
				</tr>
				<tr>
					<td><img align=middle src="../images/green.gif" WIDTH="12" HEIGHT="12">
					<A href="Numeric.html" style ="TEXT-DECORATION: none" >
					<font color=white size=2 face=sans-serif>
					SANumeric</A> </FONT> </td>
				</tr>
				<tr><td><hr></td></tr>
				<tr>
					<td>
					<A href="Enums.html" style ="TEXT-DECORATION: none" >
					<font color=white size=2 face=sans-serif>
					Enums and Typedefs</A> </FONT> </td>
				</tr>
			</table>
		</td><!--empty column-->
		<td width=20> 
			<p>&nbsp;&nbsp;</p>
		</td><!--Content-->
		<td valign=top align=left>
			<table width="100%" cellspacing=2 cellpadding=2>
				<tr>
					<td align=left >					<A href="Command_Usage.html" style ="TEXT-DECORATION: none"><h3>Usage</h3></A>
					</td>
					<td align=left >					<A href="Command.html" style ="TEXT-DECORATION: none"><h3>Class Members</h3></A>
					</td>
					<td align=left >					<A href="Command_Examples.html#ParamCount" style ="TEXT-DECORATION: none"><h3>Examples</h3></A>
					</td>
				</tr>			
				<tr>
					<td colspan=3><h1>SACommand::ParamCount</h1></td>
				</tr>			
			</table>

			<P><font face="Arial"><B>int&nbsp; ParamCount( );<BR>throw 
            (SAException);</B></font></P>

			<P>Returns the number of parameters associated 
            with the <STRONG>SACommand</STRONG> object. 
			</P>

			<h3>Remarks</h3>
			<P><STRONG>ParamCount</STRONG> 
			method returns 
            the number of parameters created explicitly by using <A 
            href="Command_CreateParam.html">CreateParam</A> 
            method or (if parameters were not created before) creates them 
            implicitly (can query native API if needed and therefore can throw 
            exception on 
            error) and returns the number of created parameters.&nbsp; 
			</P>
			<P>Command parameter is represented by 
            <STRONG>SAParam</STRONG> object. You can look 
            <STRONG>SAParam</STRONG> 
            objects through and assign their values 
            with <A href="Command_Param.html" >Param</A> 
            and 
            <A href="Command_ParamByIndex.html" >ParamByIndex</A> 
            methods. Values for the 
            input parameters can also be supplied by <A 
            href="Command_operator_bind.html" 
            >operator &lt;&lt;</a> 
                   . 
			</P>
			
			<H3>Server specific notes</H3>
            <P>No specific information.</P>
			
			<H3>See also</H3>
			<P>		<A href="Command_setCommandText.html">setCommandText</A>,   
			<A href="Command_CreateParam.html" target="" >CreateParam</A>, <A 
            href="Command_Param.html">Param</A>, 
            <A 
            href="Command_ParamByIndex.html">ParamByIndex</A>   
			</P>
			<P>		<A href="Param.html" >SAParam</A> 
			</P>
            <p><A href="../HowTo/errors.html" >Error 
            handling</A> </p>

			<H3>Problems and Questions</H3>
			<P>			If 
			you haven't found the answer to your questions or 
            have some problems on using the Library, please, send e-mail to <A 
            href="mailto:howto@sqlapi.com">howto@sqlapi.com</A>.
			</P>
		</td>
	<tr></tr>
</table>
</body></html>

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?