This article will cover the syntax of the ‘disconnect’ regular script statement

The disconnect statement terminates a previously made connection to a database. Without the disconnect statement, the connection will be terminated when a new connection is made or when the script execution ends.

Statement syntax

Example

In this example, we disconnect from a previously made connection.

Result

The previous database connection is terminated. To pull from the database again, a new connection would need to be made.