एएसपी ट्यूटोरियल

एएसपी होम

WP ट्यूटोरियल

वेबपेज परिचय वेबपेज रेजर वेबपेज लेआउट वेबपेज फोल्डर वेबपेज ग्लोबल वेबपेज फॉर्म वेबपेज ऑब्जेक्ट्स वेबपेज फ़ाइलें वेबपेज डेटाबेस वेबपेज हेल्पर्स वेबपेज वेबग्रिड वेबपेज चार्ट वेबपेज ईमेल वेबपेज सुरक्षा वेबपेज प्रकाशित वेबपेज उदाहरण वेबपेज कक्षाएं

ASP.NET रेजर

रेजर इंट्रो रेजर सिंटेक्स रेजर सी # चर रेजर सी # लूप्स रेजर सी # लॉजिक रेजर वीबी चर रेजर वीबी लूप्स रेजर वीबी लॉजिक

एएसपी क्लासिक

एएसपी परिचय एएसपी सिंटेक्स एएसपी चर एएसपी प्रक्रियाएं एएसपी सशर्त एएसपी लूपिंग एएसपी फॉर्म एएसपी कुकीज़ एएसपी सत्र एएसपी आवेदन एएसपी #शामिल करें एएसपी Global.asa एएसपी अजाक्स एएसपी ई-मेल एएसपी उदाहरण

एएसपी संदर्भ

एएसपी वीबी कार्य एएसपी वीबी कीवर्ड एएसपी प्रतिक्रिया एएसपी अनुरोध एएसपी आवेदन एएसपी सत्र एएसपी सर्वर एएसपी त्रुटि एएसपी फाइल सिस्टम एएसपी टेक्स्टस्ट्रीम एएसपी ड्राइव एएसपी फ़ाइल एएसपी फ़ोल्डर एएसपी डिक्शनरी एएसपी एडरोटेटर एएसपी ब्राउज़र कैप एएसपी सामग्री लिंकिंग एएसपी सामग्री रोटेटर एएसपी त्वरित रेफरी

एडीओ ट्यूटोरियल

एडीओ परिचय एडीओ कनेक्ट एडीओ रिकॉर्डसेट एडीओ प्रदर्शन एडीओ क्वेरी एडीओ सॉर्ट एडीओ जोड़ें एडीओ अपडेट एडीओ हटाएं एडीओ डेमो एडीओ स्पीड अप

एडीओ ऑब्जेक्ट्स

एडीओ कमांड एडीओ कनेक्शन एडीओ त्रुटि एडीओ फील्ड एडीओ पैरामीटर एडीओ संपत्ति एडीओ रिकॉर्ड एडीओ रिकॉर्डसेट एडीओ स्ट्रीम एडीओ डेटा प्रकार

एडीओ गेटरो विधि


❮ पूरा रिकॉर्डसेट वस्तु संदर्भ

GetRows विधि एक रिकॉर्डसेट ऑब्जेक्ट से दो-आयामी सरणी में कई रिकॉर्ड की प्रतिलिपि बनाती है।

वाक्य - विन्यास

vararray=objRecordset.GetRows(rows,start,fields)

Parameter Description
rows Optional. A GetRowsOptionEnum value that specifies the number of records to retrieve. Default is adGetRowsRest.

Note: If you omit this argument it will retrieve all records in the Recordset

start

Optional. What record to start on, a record number or a BookmarkEnum value

fields Optional. If you want to specify only the fields that the GetRows call will return, it is possible to pass a single field name/number or an array of field names/numbers in this argument

उदाहरण

<%
set conn=Server.CreateObject("ADODB.Connection")
conn.Provider="Microsoft.Jet.OLEDB.4.0"
conn.Open(Server.Mappath("northwind.mdb"))
set rs = Server.CreateObject("ADODB.recordset")
rs.Open "Select * from Customers", conn

'The first number indicates how many records to copy
'The second number indicates what recordnumber to start on
p=rs.GetRows(2,0)
rs.close
conn.close

'This example returns the value of the first
'column in the first two records
response.write(p(0,0))
response.write("<br>")
response.write(p(0,1))

'This example returns the value of the first
'three columns in the first record
response.write(p(0,0))
response.write("<br>")
response.write(p(1,0))
response.write("<br>")
response.write(p(2,0))
%>

GetRowsOptionEnum मान

Constant Value Description
adGetRowsRest -1 Retrieves the rest of the records in the Recordset object

बुकमार्कएनम मान

Constant Value Description
adBookmarkCurrent 0 Starts at the current record
adBookmarkFirst 1 Starts at the first record
adBookmarkLast 2 Starts at the last record

❮ पूरा रिकॉर्डसेट वस्तु संदर्भ