MATLAB DATABASE TOOLBOX RELEASE NOTES Guía de usuario Pagina 457

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 684
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 456
commit
7-27
commit
Make database changes permanent
Syntax
commit(conn)
Description
commit(conn) makes permanent changes made to the database connection conn since
the last commit or rollback function was run. To run this function, the AutoCommit
flag for conn must be off.
Examples
Example 1 — Check the Status of the Autocommit Flag
Check that the status of the AutoCommit flag for connection conn is off.
get(conn,'AutoCommit')
ans =
off
Example 2 — Commit Data to a Database
1
Insert exdata into the columns DEPTNO, DNAME, and LOC in the table DEPT, for the
data source conn.
fastinsert(conn, 'DEPT', {'DEPTNO';'DNAME';'LOC'},...
exdata)
2
Commit this data.
commit(conn)
Vista de pagina 456
1 2 ... 452 453 454 455 456 457 458 459 460 461 462 ... 683 684

Comentarios a estos manuales

Sin comentarios