015-go Database Operational considerations

Source: Internet
Author: User

1. Query, Exec
(1) Exec (update, INSERT, delete, etc. no result set returned operation) will automatically release the connection after the call is finished;
(2) Query (return to SQL.) Rows) does not release the connection, and still holds the connection after it has been called, transferring ownership of the connection to SQL. Rows, so you need to manually call close to return the connection.

2, SQL. Open () is to take out the corresponding DB, when the database has not yet established a connection, just initialized a SQL. DB structure. Open when the database connection is not established, only when the use of the actual connection will be established.

015-go Database Operational considerations

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.