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!