| Contents | Index |
datainsert(connect,tablename,fieldnames,data)
datainsert(connect,tablename,fieldnames,data) inserts data from the MATLAB workspace into a database table.
You can also use the fastinsert function to export MATLAB data into a database table. The fastinsert function allows more flexibility in terms of the date and time string format of input data, but it is slower than datainsert.
Export MATLAB cell array data into the field names col1, col2, and col2 in the 'inserttable' database table:
datainsert(connect,'inserttable',{'col1','col2','col2'},...
{33.5 8.77 '2010-07-04'}) Export data from a numeric matrix into a database table:
datainsert(connect,'inserttable',{'col1','col2','col2'},...
[33.5 8.77 734323])
fastinsert | insert | update

Includes the most popular MATLAB recorded presentations with Q&A sessions led by MATLAB experts.
| © 1984-2012- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |