How to insert cell array of double in to database table
Show older comments
I am trying to insert cell array that contains double data.how to insert mxn double data into database table field. For example, the sample code is
tablename = 'LabelData1';
data = ([346565774,4637857]);
data = table(data);
sqlwrite(conn,tablename,data,'ColumnType',{"double"})
but i am getting folling error
_ _Error using database.odbc.connection/sqlwrite (line 102)
ODBC JDBC/ODBC Error: ODBC Driver Error: [Microsoft][SQL Server Native Client 11.0][SQL Server]Incorrect syntax near ')'..__
I am using MS SQL server
Accepted Answer
More Answers (0)
Categories
Find more on Database Toolbox in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!