⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 command_cnstr.html

📁 通用的数据库中间库
💻 HTML
字号:
<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::SACommand</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>

<p>&nbsp;</p>
<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>
			</table>
		</td><!--empty column-->
		<td width="20"> 
			<p>&nbsp;&nbsp;</p>
		</td><!--Content-->
		<td valign="top" align="left" style="LEFT: 183px; TOP: 1px">
			<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#cnstr" style="TEXT-DECORATION: none"><h3>Examples</h3></A>
					</td>
				</tr>			
				<tr>
					<td colspan="3"><h1>SACommand::SACommand</h1></td>
				</tr>			
			</table>

			<p><font face="Arial"><b>SACommand();</b></font></p>
			<p><font face="Arial"><b>    SACommand( SAConnection  *</b>pConnection<b>  , const SAString  &amp;</b>sCmd<b> = SAString(), SACommandType_t</b> eCmdType<b> = 
            SA_CmdUnknown );</b></font></p>

			<p>Both of these constructors initialize a new <b>SACommand</b> object. 
			</p>

			<h3>Parameters</h3>
			<p><i>pConnection</i>.&nbsp;&nbsp;&nbsp; A pointer to the <b>SAConnection</b> object to be associated with the <b>SACommand</b> object.<p>
			<p><i>sCmd</i>.&nbsp;&nbsp;&nbsp; A <b>SAString</b> object represents command text 
			string (an SQL statement or a stored 
            procedure name). If it is NULL or an empty string, no command 
            text is associated with the command, and you have to
            call <A href="Command_setCommandText.html">setCommandText</A>        
                     method 
            later.
            
			<p><em>eCmdType</em>.&nbsp;&nbsp;&nbsp; Type of 
            a command. <em>eCmdType</em> parameter can have one of the 
            following values from <strong>SACommandType_t</strong>     
                    enum:</p>
            <ul>
            <li><strong>SA_CmdUnknown</strong>   
                   &nbsp;&nbsp;&nbsp; Used by default. Library detects 
                command type automatically.
            <li><strong>SA_CmdSQLStmt</strong>&nbsp;&nbsp;&nbsp; Command 
                is an SQL statement.
            <li><strong>SA_CmdStoredProc</strong>&nbsp;&nbsp;&nbsp; Command is a 
                stored procedure or a function.</li>
            </ul>

			<h3>Remarks</h3>
			<p>You can create <strong>SACommand</strong> object associated with 
            an existing connection, and set command text and command type in 
            constructor (Syntax 2). 
			</p>
			<p>It's not necessary to set a command type explicitly. 
            But if you still have any reason to do it, use one of the 
            <A href="Enums.html">SACommandType_t</A> constants. 
			</p>
			<p>If you use the constructor with no parameters, 
            it creates a new <strong>SACommand</strong>
                 object with no connection 
            and no command text. To associate a connection with the 
            command and set command text call <A href="Command_setConnection.html">setConnection</A>
            and <A href="Command_setCommandText.html">setCommandText</A> 
            methods. 
			</p>
			
			<h3>Server specific notes</h3>
            <p>No specific information.</p>
			
			<h3>See also</h3>
			<p>
			<A href="Command_setConnection.html">setConnection</A>,  
			<A href="Command_setCommandText.html">setCommandText</A>,  
			<A href="Enums.html">SACommandType_t</A> 
			</p>
			<p>
			<A href="Connection.html">SAConnection</A>,   
			<A href="String.html">SAString</A> 
			</p>

			<h3>Problems and Questions</h3>
			<p>
			If 
			you don't find the answer to you 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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -