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

📄 field_usage.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 - SAField object</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/green.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/red.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>  </p>
		</td><!--Content-->
		<td valign="top" align="left">
			<table width="100%" cellspacing="2" cellpadding="2">
				<tr>
					<td align="left">		<A href="Field.html" style="TEXT-DECORATION: none"><h3>Class Members</h3></A>
					</td>
					<td align="left">		<A href="Field_Examples.html" style="TEXT-DECORATION: none"><h3>Examples</h3></A>
					</td>
				</tr>			
				<tr>
					<td colspan="2"><h1>SAField object</h1></td>
				</tr>			
			</table>
			
			<p>A command (an SQL statement or procedure) 
            can have a result set after executing. If result set exists, a set 
            of <B>SAField</B> objects is created implicitly. Each <b>SAField</b> object represents a column in 
            result set. 
            
			
			<p>With the methods of <STRONG>SAField</STRONG> 
            object you can do the following actions with metadata:</p>
            <UL>
                <LI>Return the name of a field using <A 
                href="Field_Name.html">Name</A>
                method and field position in 
                result set using <A href="Field_Pos.html">Pos</A> 
                method;<BR><BR>
                <LI>Return the basic characteristics of a field with the <A 
                href="Field_FieldType.html">FieldType</A>, <A 
                href="Field_FieldPrecision.html">FieldPrecision</A>, 
                and <A 
                href="Field_FieldScale.html">FieldScale</A> methods;<BR><BR>
                <LI>Return the declared size of a field calling <A 
                href="Field_FieldSize.html">FieldSize</A> method;<BR><BR>
                <LI>Check if it is possible for the field value to be null with 
                <A href="Field_isFieldRequired.html">isFieldRequired</A> 
                method.</LI></UL>
            <P><STRONG>SAField</STRONG> object methods provide the following 
            possibilities to work with field value:</P>
            <UL>
                <LI>View the data in the field with the <A 
                href="Field.html#Methods inherited from SAValueRead">methods 
                inherited from <STRONG>SAValueRead</STRONG> 
                class</A> 
                (<STRONG>asLong</STRONG>, <STRONG>asFloat</STRONG>, 
                <STRONG>asDouble</STRONG>, <STRONG>asString</STRONG> and so 
                on);<BR><BR>
                <LI>Organize piecewise reading of Long or BLob(CLob) value using <A 
                href="Field_ReadLongOrLob.html">ReadLongOrLob</A> 
            method.</LI></UL>
            <P>You can not create <STRONG>SAField</STRONG> object by yourself. The Library always does 
            it implicitly when needed. To get <STRONG>SAField</STRONG> object 
            use <A href="Command_Field.html">SACommand::Field</A>
               
                   method. You can get the 
            number of fields created calling <A 
            href="Command_FieldCount.html">SACommand::FieldCount</A> 
            method. 
</P>
            <P> All of the metadata field characteristics (field name, 
            size, type, precision, scale) are available immediately after 
            <STRONG>SAField</STRONG> 
            object creating 
            (generally after command preparing, but on some servers after 
            command executing). A value of field is 
            available only after fetching row from a result set (see <A 
            href="Command_FetchNext.html">SACommand::FetchNext</A> method). </P>
            <H3>See also</H3>
            <P><A href="Command.html">SACommand</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 + -