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
Disconnect
Example
In this example, we disconnect from a previously made connection.
Disconnect;
Result
The previous database connection is terminated. To pull from the database again, a new connection would need to be made.