How to update entire table in a sql database from a table in matlab

问题: I have a sql database that I am connected to in matlab to load tables into my database. However, I cannot update these tables. When I run my code the updated table is appen...

问题:

I have a sql database that I am connected to in matlab to load tables into my database. However, I cannot update these tables. When I run my code the updated table is appended to the end of my original table as new rows. I want to be able to update all the numbers in my matrix without manually inputing the new data using the update command in sql because my datapoints are constantly changing. I am currently connecting using a JDBC connection but the sqlwrite command does not work in this case.


回答1:

Have you tried below update cmd?

update(conn,tablename,colnames,data,whereclause)
  • 发表于 2019-02-20 03:47
  • 阅读 ( 178 )
  • 分类:sof

条评论

请先 登录 后评论
不写代码的码农
小编

篇文章

作家榜 »

  1. 小编 文章
返回顶部
部分文章转自于网络,若有侵权请联系我们删除