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

📄 exception_errpos.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 - SAException::ErrPos</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/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/red.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">
			<table width="100%" cellspacing="2" cellpadding="2">
				<tr>
					<td align="left"><A href="Exception_Usage.html" style="TEXT-DECORATION: none"><h3>Usage</h3></A>
					</td>
					<td align="left"><A href="Exception.html" style="TEXT-DECORATION: none"><h3>Class Members</h3></A>
					</td>
					<td align="left"><A href="Exception_Examples.html" style="TEXT-DECORATION: none"><h3>Examples</h3></A>
					</td>
				</tr>			
				<tr>
					<td colspan="3"><h1>SAException::ErrPos</h1></td>
				</tr>			
			</table>

			<p><font face="Arial"><b>   int ErrPos(</b><b>) const;</b></font></p>

			<p> 
                 Gets an error 
                 position in SQL 
              statement. 
			</p>
            <h3>Return values</h3>
            <P>     
                     An integer value representing error position.</P>
            <p>Not all DBMS servers allow to get error 
            position. See <STRONG>Server specific notes</STRONG>      
                      
                       to get detailed information about returned 
            value.</p>

			<h3>Remarks</h3>
            <p>If a command object's associated SQL 
            statement contains any syntax errors, an exception will be thrown 
            when you try to compile. <STRONG>ErrPos</STRONG>      
                      
                     method returns the error position within the command 
            string.</p>
			
			<h3>Server specific notes</h3>
			
			<p>
            <TABLE border=1 cellPadding=5 width=100%>
                <TBODY>
                <TR bgColor=#000094>
                    <TD width=25%>
                        <P><STRONG><FONT color=white face="">DBMS server</FONT> 
                        </STRONG></P></TD>
                    <TD>
                        <P><STRONG><FONT color=white face="">ErrPos method 
                        returned value</FONT> 
						</STRONG></P></TD></TR>
                <TR>
                    <TD>
                        <P><STRONG><A 
                        href="../ServerSpecific/Oracle.html"  title="Oracle server specific information">Oracle</A></STRONG></P></TD>
                    <TD>
                        <P><STRONG>ErrPos</STRONG> returns parse error 
                        offset.</P></TD></TR>
                <TR>
                    <TD>
                        <P><STRONG><A 
                        href="../ServerSpecific/SQLServer.html" title="SQL Server server specific information">SQL 
                        Server</A> </STRONG> </P></TD>
                    <TD>
                        <P><STRONG>ErrPos</STRONG> returns the number of line within 
                        SQL statement where error 
                        occurred.</P></TD></TR>
                <TR>
                    <TD>
                        <P><STRONG><A 
                        href="../ServerSpecific/Sybase.html" title="Sybase server specific information">Sybase</A> </STRONG> 
                        </P>
                    <TD>
                        <P><STRONG>ErrPos</STRONG> returns the number of line within 
                        SQL statement where error 
                        occurred.</P>
                <TR>
                    <TD>
                        <P><STRONG><A 
                        href="../ServerSpecific/DB2.html" title="DB2 server specific information">DB2</A></STRONG> </P></TD>
                    <TD>
                        <P><STRONG>ErrPos</STRONG>    returns -1. DB2 
                        does not support this 
                        function.</P></TD></TR>
                <TR>
                    <TD>
                        <P><STRONG><A 
                        href="../ServerSpecific/Informix.html" title="Informix server specific information">Informix</A></STRONG> 
                        </P></TD>
                    <TD>
                        <P><STRONG>ErrPos</STRONG>    returns -1. Informix 
                        does not support this 
                        function.</P></TD></TR>
                <TR>
                    <TD>
                        <P><STRONG><A 
                        href="../ServerSpecific/InterBase.html" title="InterBase server specific information">InterBase</A></STRONG></P></TD>
                    <TD>
                        <P><STRONG>ErrPos</STRONG> returns -1. InterBase does not support this 
                        function.</P></TD></TR>
                <TR>
                    <TD>
                        <P><STRONG><A 
                        href="../ServerSpecific/SQLBase.html" title="SQLBase server specific information">SQLBase</A> </STRONG></P></TD>
                    <TD>
                        <P><STRONG>ErrPos</STRONG> returns character position of the 
                        syntax error within an SQL statement. The first 
                        character is position 
                        0.</P></TD></TR>
                <TR>
                    <TD>
                        <P><STRONG><A 
                        href="../ServerSpecific/MySQL.html" title="MySQL server specific information">MySQL</A></STRONG> 
                        </P></TD>
                    <TD>
                        <P><STRONG>ErrPos</STRONG> returns -1. MySQL does not support this 
                        function.</P></TD></TR>
                <TR>
                    <TD>
                        <P><STRONG><A 
                        href="../ServerSpecific/PostgreSQL.html" title="PostgreSQL server specific information">PostgreSQL</A></STRONG> 
                        </P></TD>
                    <TD>
                        <P><STRONG>ErrPos</STRONG> returns -1. PostgreSQL does not support this 
                        function.</P></TD></TR>
                <TR>
                    <TD>
                        <P><STRONG><A 
                        href="../ServerSpecific/ODBC.html" title="ODBC server specific information">ODBC</A></STRONG> 
                        </P></TD>
                    <TD>
                        <P><STRONG>ErrPos</STRONG> returns -1. ODBC does not support this 
                        function.</P></TD></TR>
              </TBODY></TABLE> 
            </p>
            
            <h3>See also</h3>
            <P><A href="Exception_ErrClass.html" target="" >ErrClass</A>, <A 
            href="Exception_ErrText.html">ErrText</A>, <A 
            href="Exception_ErrNativeCode.html">ErrNativeCode</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 + -