Main Content

Database Operations

Run stored procedure or custom function, alter structure of database, manage database transactions, and switch between catalogs

You can use the execute function and other Database Toolbox™ functionality to perform numerous database operations. For example, use the runstoredprocedure function to run a stored procedure. You can alter database structure by creating tables and adding columns. The rollback and commit functions enable you to manage database transactions. Or, you can execute the corresponding SQL statements by using the execute function.

Functions

expand all

executeExecute SQL statement using relational database connection
commitMake database changes permanent
rollbackUndo database changes
runstoredprocedureCall stored procedure with and without input and output arguments
sqlupdateUpdate rows in database table (Since R2023a)

Topics