Why does my SQL request return only the first letter of the string I expect?
4 views (last 30 days)
Show older comments
MathWorks Support Team
on 24 Sep 2019
Answered: MathWorks Support Team
on 30 Dec 2020
I am trying to pull data from a SQL database. However, the columns I need data from are only pulling in the first character.
For example, the returned TestFieldName should be a string “ABCDE” but MATLAB returns 'A', and the TestFieldValue should be a double something like 0.012345 but MATLAB returns '0'.
Why is MATLAB returning only the first character of each value for my SQL query?
Accepted Answer
MathWorks Support Team
on 24 Sep 2019
This issue was resolved in an update to R2019a. Installing the latest update for R2019a, or upgrading to the latest release of MATLAB, should resolve this issue.
0 Comments
More Answers (0)
See Also
Categories
Find more on Database Toolbox in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!