下面的示例打开 testdata 数据库中的 customer 表。使用 delete - sql 给所有 country 字段包含 usa 的记录做上删除标记。deleted( ) 显示所有具有删除标记的记录。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 && 清除所有删除标记