亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? odbc-e4.htm

?? odbc教程真的很不錯
?? HTM
字號:
<html>
<head>
<title>ODBC Programming Tutorial: Retrieving Results</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>

<body bgcolor="#000000" text="#FFFFFF" link="#FFFFCC" vlink="#FFCCCC" alink="#CCFFCC">
<h1 align="center"><font face="Tahoma" color="#FFFFCC">Retrieving Results</font></h1>
<p><font face="Tahoma" size="-1">In this tutorial, you will learn how to retrieve 
  the records returned by executing an SQL statement.</font></p>
<p><font face="Tahoma" size="-1">We call a group of records returned by a query<font color="#CCFFCC"><b> 
  a result set</b></font> (or recordset for those who are familiar with VB). The 
  general steps in retrieving a result set are as follows:</font></p>
<ol>
  <li><font face="Tahoma" size="-1">Determine whether a result set is available.</font></li>
  <li><font face="Tahoma" size="-1">Bind the columns of the result set to appropriate 
    variables</font></li>
  <li><font face="Tahoma" size="-1">Fetching a row</font></li>
</ol>
<p><font face="Tahoma" size="-1">When you're done with the result set, you need 
  to destroy it by calling <font color="#FFFFCC"><b>SQLCloseCursor</b></font>.</font></p>
<h4><font face="Tahoma" color="#FFFFCC">Determine whether a result set is available</font></h4>
<p><font face="Tahoma" size="-1">Sometimes you already know whether a result set 
  will be created by examination of the SQL statement. If the SQL statement is 
  not of a type that returns a result set, you know that no result set will be 
  available. However, sometimes you don't even know of what type the SQL statement 
  is, such is the case when you let the user enters custom SQL statements. In 
  that case, you must check whether a result set was created by calling <font color="#FFFFCC"><b>SQLNumResultCols</b></font>. 
  This function returns the number of columns (fields) in the result set (if one 
  exists) and has the following syntax:</font></p>
<blockquote> 
  <pre><b><font face="Tahoma" color="#33CCCC">SQLNumResultCols proto StatementHandle:DWORD, pNumCols:DWORD</font></b></pre>
</blockquote>
<ul>
  <li><font face="Tahoma" size="-1"><b><font color="#FFCCFF">StatementHandle</font></b> 
    The handle to the statement</font></li>
  <li><font color="#FFCCFF"><b><font face="Tahoma" size="-1">pNumCols</font></b></font><font face="Tahoma" size="-1"> 
    A pointer to a dword variable that will receive the number of columns in the 
    result set.</font></li>
</ul>
<p><font face="Tahoma" size="-1">If the value in the variable pointed to by<font color="#FFCCFF"><b> 
  pNumCols</b></font> is 0, there is no result set.</font></p>
<h4><font face="Tahoma" color="#FFFFCC">Bind the columns</font></h4>
<p><font face="Tahoma" size="-1">In this regard, the concept is identical to that 
  of binding a variable to a parameter of an SQL statement. You associate (bind) 
  a variable to a specific column in the result set. The function in this case 
  is <font color="#FFFFCC"><b>SQLBindCol</b></font> which has the following syntax:</font></p>
<blockquote> 
  <pre><b><font face="Tahoma" color="#CCFFCC">SQLBindCol proto StatementHandle:DWORD,<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;ColumnNumber:DWORD,<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;TargetType:DWORD,<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;TargetValuePtr:DWORD,<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;BufferLength:DWORD,<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;pStrLenOrIndPtr:DWORD</font></b></pre>
</blockquote>
<ul>
  <li><font color="#FFCCFF"><b><font face="Tahoma" size="-1">StatementHandle</font></b></font><font face="Tahoma" size="-1"> 
    The handle to the statement</font></li>
  <li><font color="#FFCCFF"><b><font face="Tahoma" size="-1">ColumnNumber</font></b></font><font face="Tahoma" size="-1"> 
    Number of the column in the result set to bind. The column number starts from 
    1. Column 0 is the bookmark column.</font></li>
  <li><font face="Tahoma" size="-1"><b><font color="#FFCCFF">TargetType </font></b>The 
    constant that indicates the type of the variable (buffer) pointed to by<font color="#FFCCFF"><b> 
    TargetValuePtr</b></font>.</font></li>
  <li><font face="Tahoma" size="-1"><b><font color="#FFCCFF">TargetValuePtr</font></b> 
    A pointer to the variable or buffer that will be bound to the column. When 
    you call <font color="#FFFFCC"><b>SQLFetch</b></font> to retrieve a row from 
    the result set, the variable or buffer will be filled with the value in the 
    associated column.</font></li>
  <li><font color="#FFCCFF"><b><font face="Tahoma" size="-1">BufferLength </font></b></font><font face="Tahoma" size="-1">The 
    size of the buffer pointed to by <font color="#FFCCFF"><b>TargetValuePtr</b></font>.</font></li>
  <li><font color="#FFCCFF"><b><font face="Tahoma" size="-1">pStrLenOrIndPtr</font></b></font><font face="Tahoma" size="-1"> 
    Look up the detail in <font color="#FFFFCC"><b>SQLBindParameter</b></font></font></li>
</ul>
<p><font face="Tahoma" size="-1"><b><font color="#33CCCC">Example:</font></b></font></p>
<p><font color="#33CCCC"><b><font face="Tahoma" size="-1">.data?<br>
  buffer db 21 dup(?)<br>
  DataLength dd ?&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;; will be filled with the length 
  of the string in buffer after SQLFetch is called.</font></b></font></p>
<p><font color="#33CCCC"><b><font face="Tahoma" size="-1">.code<br>
  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;.....<br>
  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;invoke SQLBindCol, hStmt, 1, SQL_C_CHAR, addr 
  buffer, 21, addr DataLength</font></b></font></p>
<h4><font face="Tahoma" color="#FFFFCC">Fetching a row</font></h4>
<p><font face="Tahoma" size="-1">It's quite simple. Calling <font color="#FFFFCC"><b>SQLFetch</b></font> 
  retrieves a row from the result set into the bound variables. After <font color="#FFFFCC"><b>SQLFetch</b></font> 
  is called, the cursor is updated. You can think of a cursor as the record pointer. 
  It indicates what row will be returned when <font color="#FFFFCC"><b>SQLFetch</b></font> 
  is called. For example, if the result set has 4 rows, the cursor is positioned 
  at the first row when the result set was created. When <font color="#FFFFCC"><b>SQLFetch</b></font> 
  is called, the cursor advances by 1 row. So if you call <font color="#FFFFCC"><b>SQLFetch 
  </b></font>4 times, there is no more row to fetch. The cursor is said to point 
  to the end of file (EOF). <font color="#FFFFCC"><b>SQLFetch</b></font> has the 
  following syntax:</font></p>
<blockquote> 
  <pre><b><font face="Tahoma" color="#33CCCC">SQLFetch proto StatementHandle:DWORD</font></b></pre>
</blockquote>
<p><font face="Tahoma" size="-1">This function returns<font color="#CCFFCC"><b> 
  SQL_NO_DATA</b></font> when no more row is available.</font></p>
<p><font face="Tahoma" size="-1"><b><font color="#33CCCC">Example:</font></b></font></p>
<p><font color="#33CCCC"><b><font face="Tahoma" size="-1">.data?<br>
  buffer db 21 dup(?)<br>
  DataLength dd ?</font></b></font></p>
<p><font color="#33CCCC"><b><font face="Tahoma" size="-1">.code<br>
  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;.....<br>
  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;invoke SQLBindCol, hStmt, 1, SQL_C_CHAR, addr 
  buffer, 21, addr DataLength<br>
  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;invoke SQLFetch, hStmt</font></b></font></p>
<hr>
<p align="center"><font face="Tahoma" size="-1"><b>[<a href="http://win32asm.cjb.net">Iczelion's 
  Win32 Assembly Homepage</a>]</b></font></p>
</body>
</html>

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产欧美一区二区精品婷婷| 夜夜嗨av一区二区三区中文字幕| 成人的网站免费观看| 亚洲综合免费观看高清在线观看| 欧美mv日韩mv国产网站app| 91麻豆swag| 黄色资源网久久资源365| 亚洲高清一区二区三区| 国产精品麻豆99久久久久久| 51精品久久久久久久蜜臀| k8久久久一区二区三区| 蜜臀av一级做a爰片久久| 中文字幕一区二区三区不卡| 91精品国产91久久久久久一区二区 | 欧美日产国产精品| 91片在线免费观看| 国产成人综合视频| 久久成人免费电影| 亚洲一二三区在线观看| 亚洲欧洲在线观看av| 国产日韩欧美精品一区| 欧美va日韩va| 欧美一区二区三区免费大片| 欧美丝袜丝nylons| 91网址在线看| 成人激情图片网| 国内精品视频666| 美腿丝袜亚洲色图| 日韩激情视频在线观看| 亚洲一区二区三区自拍| 亚洲另类在线视频| 中文字幕一区二区在线播放| 国产欧美日韩麻豆91| 久久精品视频免费| 久久久久久久久久电影| 精品国产91乱码一区二区三区| 91精品中文字幕一区二区三区| 在线欧美小视频| 色综合久久精品| 色综合中文综合网| 美女视频网站久久| 免费一级欧美片在线观看| 视频在线在亚洲| 日本美女视频一区二区| 日韩精品高清不卡| 日本视频中文字幕一区二区三区| 日本vs亚洲vs韩国一区三区二区| 五月综合激情日本mⅴ| 日韩激情在线观看| 精品一区二区在线免费观看| 老司机精品视频一区二区三区| 免费观看一级特黄欧美大片| 麻豆91免费观看| 国产一区二区三区在线观看免费视频 | 欧美影院一区二区三区| 欧美性猛片xxxx免费看久爱| 欧美日韩一区久久| 欧美一区二区三区视频在线观看| 精品少妇一区二区三区日产乱码| 久久夜色精品国产噜噜av| 国产天堂亚洲国产碰碰| 亚洲国产激情av| 亚洲精品国久久99热| 视频一区二区三区在线| 久久精品二区亚洲w码| 国产一区二区在线观看视频| www..com久久爱| 在线国产亚洲欧美| 日韩欧美一二三| 国产精品久久久久久久久图文区 | 亚洲国产成人tv| 日本不卡一区二区三区高清视频| 精品中文字幕一区二区| 成人午夜伦理影院| 欧美在线看片a免费观看| 日韩欧美资源站| 国产精品五月天| 亚洲h动漫在线| 国产成人欧美日韩在线电影| 91久久精品日日躁夜夜躁欧美| 欧美放荡的少妇| 国产亚洲精品aa| 亚洲成人av中文| 国产高清在线精品| 欧美午夜免费电影| 国产亚洲精品免费| 亚洲成年人影院| 国产成人免费av在线| 欧美亚洲国产bt| 久久这里只有精品6| 一区二区三区四区不卡在线 | 欧美午夜免费电影| 久久精品人人做人人综合 | 国产片一区二区| 天天综合色天天综合| 高清视频一区二区| 日韩一区二区三区四区 | 国产欧美在线观看一区| 亚洲尤物视频在线| 大胆欧美人体老妇| 91精品国模一区二区三区| 国产精品人成在线观看免费| 日韩av中文在线观看| 99re热视频这里只精品| 久久综合av免费| 午夜精品久久久久久久99樱桃| 成人国产在线观看| 日韩精品一区二区三区视频| 一区二区三区四区不卡在线| 岛国av在线一区| 欧美一区二区三区播放老司机| 亚洲色图在线视频| 成人亚洲一区二区一| 日韩美一区二区三区| 亚洲国产你懂的| 91免费观看视频在线| 亚洲国产经典视频| 国产精品一区二区x88av| 欧美疯狂做受xxxx富婆| 亚洲图片一区二区| 色婷婷av一区二区三区软件 | 亚洲视频资源在线| 国产99一区视频免费 | 洋洋成人永久网站入口| 成人黄色小视频| 国产色婷婷亚洲99精品小说| 精品一区二区三区不卡 | 亚洲视频一区二区在线| 国产高清不卡一区二区| 精品福利在线导航| 久久99精品一区二区三区三区| 欧美日韩精品一区视频| 亚洲午夜精品一区二区三区他趣| 97精品超碰一区二区三区| 国产精品国产自产拍高清av | 欧美一区日韩一区| 日韩影院免费视频| 91精品久久久久久蜜臀| 欧美a级理论片| 欧美一级片在线| 日本va欧美va精品| 日韩欧美一区二区久久婷婷| 奇米精品一区二区三区在线观看一| 7777精品伊人久久久大香线蕉完整版 | 色狠狠色狠狠综合| 亚洲精品成人在线| 欧美日韩一本到| 视频一区二区中文字幕| 欧美大片一区二区三区| 经典三级在线一区| 亚洲国产电影在线观看| 成年人国产精品| 日韩一区在线免费观看| 91美女蜜桃在线| 亚洲高清视频在线| 精品免费国产二区三区 | 秋霞av亚洲一区二区三| 欧美精品一区二区三区一线天视频 | 亚洲动漫第一页| 欧美精品第1页| 久久99国产精品麻豆| 国产视频一区不卡| 色综合天天视频在线观看| 亚洲已满18点击进入久久| 91 com成人网| 国产成人综合视频| 亚洲精品成a人| 91麻豆精品国产91久久久使用方法| 久久成人免费电影| 国产精品久久久久久亚洲伦| 欧美亚洲高清一区| 麻豆精品一区二区综合av| 国产欧美日韩在线| 欧美三级乱人伦电影| 国产主播一区二区| 亚洲日穴在线视频| 日韩视频123| 成人h动漫精品一区二区| 亚洲高清免费观看| 欧美国产视频在线| 欧美三级电影精品| 国产精品综合网| 亚洲成人中文在线| 国产婷婷色一区二区三区| 欧美色欧美亚洲另类二区| 国产一区二区三区不卡在线观看| 亚洲精品免费在线播放| 久久综合色8888| 色欧美88888久久久久久影院| 日本中文一区二区三区| 国产精品久久久久aaaa| 欧美一区二区精品在线| 色偷偷88欧美精品久久久 | 色偷偷久久人人79超碰人人澡 | 91蜜桃在线免费视频| 久久国产精品区| 一区二区日韩av| 中文字幕免费在线观看视频一区| 欧美久久高跟鞋激| 91免费在线播放|