필터 지우기
필터 지우기

Push data into the SQL database

조회 수: 5 (최근 30일)
Jake
Jake 2016년 8월 1일
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

답변 (0개)

카테고리

Help CenterFile Exchange에서 Database Toolbox에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by