database returns null as -2147483648
1 次查看(过去 30 天)
显示 更早的评论
When I executed a query using MySQL console null values returned correctly. But when I queried the same data using database function in Matlab all the null values were returned as -2147483648. Has anyone encountered this?
2 个评论
Walter Roberson
2017-8-13
Looks like -2^31 which is the most negative possible 32 bit integer. What is class() of the returned data? If it is integral then there would be no representation available in the data type to signal missing. Floating point numbers have NaN designed in, but integral data types do not.
回答(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!