---
title: "Access数据库-查询时间为空的记录"
author: "pingfan"
date: "2009-03-31T23:01:34Z"
tags: []
slug: "access"
draft: false
lastmod: "2009-03-31T23:13:42Z"
id: 358646
url: "https://pingfan.iteye.com/blog/358646"
---

前段时间在做asp时遇到要查询数据库时间为null为记录,小弟水平有限,唯有Google一下,于是找到了方法.

原来Access中使用IsNull函数来判断空.

例子:

```
sql="select addtime,modifytime from Article where IsNull(modifytime)"
```