delete - sql 命令示例

下面的示例打开 testdata 数据库中的 customer 表。delete-sql 为字段 country 内容为 usa 的所有记录做删除标记。所有带有删除标记的记录都显示出来。recall all 用来清除所有删除标记。

close databases
open database (home( ) + 'samples\data\testdata')
use customer && 打开 customer 表

delete from customer where country = 'usa' && 做删除标记
clear
list fields company, country for deleted( ) && 列出标有标记的记录
recall all && 清除所有删除标记