下面示例用 iif( ) 函数检查 category 表中的
described 字段是否为空。如果为空,则显示“no description”;否则,显示备注字段的内容。
close databases
open database (home( ) + 'samples\data\testdata')
use employee && 打开 employee 表
clear
scan
? iif(empty(notes), 'no notes', notes) && 备注字段是否为空?
endscan