how to store multidimensional array in a single column in mysql database?
이전 댓글 표시
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
Oleg Komarov
2012년 5월 30일
Do you want to insert or update (change) some values?
Walter Roberson
2012년 5월 30일
It gave an error when you defined b, even though you update() passing in "a" and not "b" at all ??
Shiza
2012년 5월 30일
Shiza
2012년 5월 30일
답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Database Toolbox에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!