(To be removed) Add MATLAB data to database tables
The insert
function will be removed in a future release. Use the
sqlwrite
function instead. For details, see Compatibility Considerations.
insert(
exports data from the MATLAB® workspace and inserts it into an existing database table using the
database connection conn
,tablename
,colnames
,data
)conn
. You can specify the database table name
and column names, and specify the data for insertion into the database.
If conn
is a JDBC database connection, then the
insert
function has the same functionality as the
fastinsert
function.
To export MATLAB data into a database, you can use the datainsert
and fastinsert
functions. For maximum performance, use
datainsert
.