| Database Toolbox | ![]() |
Detect if last record read in resultset was NULL
Syntax
a = isnullcolumn(rset)
Description
a = isnullcolumn(rset)
returns 1 if the last record read in the resultset rset, was NULL, and returns 0 otherwise.
Example 1 - Result Is Not NULL
curs = fetch(curs,1); rset = resultset(curs); isnullcolumn(rset)
ans =
0
indicating that the last record of data retrieved was not NULL. To verify this, type
curs.Data
ans =
[1400]
Example 2 - Result Is NULL
curs = fetch(curs,1); rset = resultset(curs); isnullcolumn(rset)
ans =
1
indicating that the last record of data retrieved was NULL. To verify this, type
curs.Data
ans =
[NaN]
| isjdbc | isreadonly | ![]() |