# 处理结果集中的 NULL

__*结果集中的 NULL*__

+ Connector 转换 SQL NULL 为特定于语言平台的对应实例
+ 使用 ResultSet 对象 wasNull() 方法:
  + `if rs.wasNull()`
------------------------------------------------

```
Class demo scripts:

For MacOS and Linux: https://github.com/pingcap/tidb-course-201-lab/blob/master/scripts/09-demo-jdbc-null-handling-01-show.sh

For Windows: https://github.com/pingcap/tidb-course-201-lab/blob/master/scripts/09-demo-jdbc-null-handling-01-show.bat
```

wasNull(): ResetSet 最后一次获取的 Column 值是否为空值。

查看并运行示例代码, 注意 0 长度空字符串和 NULL 的区别。
