Skip to content

Note

不挑戰記憶力的技術筆記

Menu
Menu

[ASP]Recordset屬性

Posted on 2012 年 12 月 4 日 by febr

Set rs = Server.CreateObject(“ADODB.Recordset”)

rs.BOF 判斷指標是否超過最前面
rs.EOF 判斷指標是否超過最後面
rs.MoveFirst 將資料錄指標移至第一筆
rs.MoveLast 將資料錄指標移至最後一筆
rs.MoveNext 將資料指標往後移一筆
rs.MovePrevious 將資料指標往前移一筆
rs.Fields.Count 傳回Recordset中的欄位數
rs(i).Name 傳回Recordset中第i個欄位的名稱
rs.RcordCount 傳回Recordset中資料錄的筆數
rs(“欄位名稱”) 傳回指定欄位名稱的資料內容
rs(i) 傳回RecordSet中的第i個欄位資料
rs.Fields(i).DefinedSize 傳回RecordSet中的第i個欄位資料欄位長度
rs.Fields(i).Type 傳回RecordSet中的第i個欄位資料欄位資料型別
rs.BookMark 傳回設定的書籤以儲存現在紀錄的位置。RecordSet.AbsolutePostition 將指標移至RecordSet中的某一筆資料上
rs.PageSize 設定每頁顯示的資料筆數
rs.PageCount 傳回分頁後的總頁數
rs.AbsolutePage 傳回目前所在的頁數
rs.AddNew 新增資料至資料表中
rs.Update 更新目前這筆資料
rs.Delete 刪除目前這筆資料
rs.Find 尋找資料值
rs.GetRows 可將Recordset中的資料儲存至陣列中
rs.Sort 可將Recordset中的資料排序

發佈留言 取消回覆

發佈留言必須填寫的電子郵件地址不會公開。 必填欄位標示為 *

近期文章

  • [AWS] S3 Object Initiate restore (復原回 Standard)
  • [Windows] 使用者快速登出的方法 Logout/ Logoff/Sign Out from Windows User Account
  • [Windows] Windows 11 安裝Server管理工具Install RSAT(Remote Server Administrator Tools)
  • Chrome出現:你的連線不是私人連線 Your connection is not private
  • [C#] 取得 Request URL 的方法

近期留言

    彙整

    分類

    • Ajax
    • Android
    • ASP
    • ASP.NET MVC
    • Azure
    • C#
    • Cisco
    • CSS
    • Delphi
    • Developer Tools
    • Framework
    • FreeBSD
    • Git
    • HTML5
    • javascript
    • jQuery
    • Juniper
    • Linux
    • Mac
    • PHP
    • Python
    • Server&OS
    • Software
    • SQL server
    • Sublime Text
    • Ubuntu
    • Visual Studio
    • Vmware
    • Web Design
    • Web Development
    • Windows
    • WordPress
    • 未分類
    • 未分類

    彙整

    分類

    • Ajax
    • Android
    • ASP
    • ASP.NET MVC
    • Azure
    • C#
    • Cisco
    • CSS
    • Delphi
    • Developer Tools
    • Framework
    • FreeBSD
    • Git
    • HTML5
    • javascript
    • jQuery
    • Juniper
    • Linux
    • Mac
    • PHP
    • Python
    • Server&OS
    • Software
    • SQL server
    • Sublime Text
    • Ubuntu
    • Visual Studio
    • Vmware
    • Web Design
    • Web Development
    • Windows
    • WordPress
    • 未分類
    • 未分類

    其他操作

    • 登入
    • 訂閱網站內容的資訊提供
    • 訂閱留言的資訊提供
    • WordPress.org 台灣繁體中文
    © 2025 Note | Powered by Superbs Personal Blog theme