how to store multidimensional array in a single column in mysql database?

조회 수: 9 (최근 30일)
Shiza
Shiza 2012년 5월 30일
when i wrote it in this way it work fine...
a=[1];
update(conn, 'candidate', colnames, a, 'where candidate_id = 1');
but when i wrote it in this way it give the error
b=[1 2];
update(conn, 'candidate', colnames, a, 'where candidate_id = 1');
??? Index exceeds matrix dimensions.
Error in ==> database.update at 136
dataString = [ dataString fieldNames{j} ' = ' tmpstr ];
  댓글 수: 4
Shiza
Shiza 2012년 5월 30일
oh sorrry.... i copied the same statment 2 times
...but in matlab i go with "b" in the query...
Shiza
Shiza 2012년 5월 30일
i want to update the value...but the problem is not with the update statment..
just the 'b' array dont work fine in the same query...

댓글을 달려면 로그인하십시오.

답변 (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