Database Toolbox |
Make database changes permanent
Syntax
Description
commit(conn)
makes permanent the changes made via insert
or update
to the database connection conn
. The commit
function commits all changes made since the last commit
or rollback
function was run, or the last exec
function that performed a commit
or rollback
. The AutoCommit
flag for conn
must be off
to use commit
.
Examples
Ensure the AutoCommit
flag for connection conn
is off
by typing
Insert the data contained in exdata
into the columns DEPTNO
, DNAME
, and LOC
, in the table DEPT
for the data source conn
. Type
Commit the data inserted in the database by typing
The data is added to the database.
See Also
database
, exec
, get
, insert
, rollback
, update
columns | confds |
© 1994-2005 The MathWorks, Inc.