This happened because the columns which did not upload has datatype cell. So, if we convert to string we can upload them.
Why sqlwrite not uploading all columns of the Matlab table to database?
조회 수: 1 (최근 30일)
이전 댓글 표시
Struggling in MATLAB
2022년 8월 25일
답변: Struggling in MATLAB
2022년 8월 26일
I am trying to upload a table to postgresql database. I have attached the table. I am using
sqlwrite(conn,tablename,data);
But when I upload it on the database and fetch it to Matlab workspace it shows only 4 columns instead of 10. I have attached the databasetable for your review. Can anyone help me to solve this?
댓글 수: 0
채택된 답변
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Database Toolbox에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!