The significance of the Rs.Open Sql,conn,a,b's two A,B representatives

Source: Internet
Author: User
Tags sql numeric value
Sql
When you use ASP to make dynamic pages, when you bind a database, you always open the Recordset: Rs.Open Sql,conn,a,b (A and B for each numeric value), what exactly does this A and B mean?

A:adopenforwardonly (=0) is read-only and the current data record can only be moved down
adOpenStatic (=3) is read-only and the current data record is free to move
adOpenKeyset (=1) can read and write, the current data record can be moved freely
adOpenDynamic (=2) can read and write, the current data record can be moved freely, you can see the new record

B:adlockreadonly (=1) default value for opening read-only records
adLockPessimistic (=2) pessimistic lock
adLockOptimistic (=3) optimistic lock
adLockBatchOptimistic (=4) batch optimistic lock


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.