CONNECT/DISCONNECT/COMMIT/ROLLBACK

Read(946) Label: connect, execute, error, commit, rollback, close,

 

A

B

 

1

=connect@e("demo")

 

Establish a connection

2

>A1.execute@k(...)

 

 

3

=A1.error()

 

Error message arising from the execution of the previous database operation

4

if A3==0

>A1.commit()

Commit if no errors

5

else

>A1.rollback()

Rollback if any errors occur

6

>A1.close()

 

Close the connection