Is the result set of PHP and the recordset of an ASP just a different term?

Source: Internet
Author: User
I think the result set of PHP is the same as the recordset for ASP, both of which are a virtual table in memory, with a pointer pointing to the current record.

It's just that there's something different about them.

Php
The recordset pointer can automatically move down one after each output record, and the result set can be automatically closed
Asp
You need to manually use Rs.movenext to move the recordset pointer to the next one, and the recordset must be manually closed
The ASP has BOF and EOF properties, and PHP has no

I don't know if I understand right, I hope you can add or correct OH


Reply to discussion (solution)

Why isn't anyone interested in this post?

Recordset Recordset is a component of ADODB
Results set result is a resource number
While both represent the results of the query, they are totally different two things

But from the functional perspective, are they basically the same?

The two resource types are different, but the same functionality is implemented
PHP Mysql_fetch_array, is the mobile
Refer to the following code
$result = mysql_query ("Select ID, name from mytable");

while ($row = Mysql_fetch_array ($result, mysql_num)) {
printf ("ID:%s Name:%s", $row [0], $row [1]);
}

But from the functional perspective, are they basically the same?
From the functional perspective, basically the same. are looping through the result set data.

  • Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.