db.close()

Description:

Close a datasource connection.

Syntax:

db.close()

Note:

Close a database connection. By default, data will be committed before closing the database.

Parameter:

db

Database connection, which supports esproc-JDBC source

Example:

 

A

 

1

=connect("demo")

 

2

>A1.close()

Close the connection to database demo.

Note:

connect and close must be used in pairs; otherwise, the connection cannot be closed.

Related function:

connect()

db.error()

db.commit()

db.rollback()