Why sqlwrite not uploading all columns of the Matlab table to database?

1 次查看(过去 30 天)
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?

采纳的回答

Atanu
Atanu 2022-8-26
This happened because the columns which did not upload has datatype cell. So, if we convert to string we can upload them.

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Database Toolbox 的更多信息

产品


版本

R2022a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by