필터 지우기
필터 지우기

database returns null as -2147483648

조회 수: 4 (최근 30일)
Azura Hashim
Azura Hashim 2017년 8월 13일
댓글: Azura Hashim 2017년 8월 14일
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
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.
Azura Hashim
Azura Hashim 2017년 8월 14일
It is an integer class. Thank you. I didn't realise there is not a NaN equivalent for integers.

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

Help CenterFile Exchange에서 Database Toolbox에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by