Lar*_*tig 13
In SQL, a completely empty field is said to be NULL. For NULL searches you do not use equals (=), but rather the special operator IS NULL:
SELECT * FROM table WHERE field IS NULL
Run Code Online (Sandbox Code Playgroud)
Access allows you to have not NULL empty fields if you allow empty strings, this is a bad idea as it makes it difficult to distinguish visual between a NULL value and a 0-length string, so I suggest you don't permit it in your database.
| 归档时间: |
|
| 查看次数: |
53401 次 |
| 最近记录: |