Borrar filtros
Borrar filtros

Push data into the SQL database

5 visualizaciones (últimos 30 días)
Jake
Jake el 1 de Ag. de 2016
Hi,
I want to push the table ("NewAllocation": a matrix of type double) into the SQL database server.
dbpath = ['C:\DATAbase.mdb'];
url = [['jdbc:odbc:Driver={Microsoft Access Driver (*.mdb, *.accdb)};DSN='';DBQ='] dbpath];
connfof = database('','mgmtuser','userpw','sun.jdbc.odbc.JdbcOdbcDriver',url);
colnames = {'EffectiveDate','Code','Component_Code','Allocation'};
tablename = 'NewAllocation';
fastinsert(connfof, tablename, colnames, NewAllocation)
My question is, can "fastinsert" or "datainsert" just populate the data as is in a type of double??
Please correct me if I am wrong. But, I think "fastinsert" or "datainsert" convert double into text value when exporting data into the SQL server..
Thanks for your help. Jake

Respuestas (0)

Etiquetas

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by