VF 一些命令


按某个字段排序后,保存至新表
sort to [新表名] on [排序字段]

把当前表结构复制到新表bmk
copy stru to [新表名]

打开空表bmk,将相同表结构的子表逐张复制至新表
append from [表名]

统一替换某字段值
replace all [字段名] with [值]

eg: replace all nationality with '中国'

将满足某条件的数据标记为删除,并彻底删除
delete from [表名] where [查询条件]
pack

eg: delete from table1 where name not in (select name from table2)

字段判空

empty(字段名)

not empty(字段名)   或者   !empty(字段名)

导出数据为Excel
copy to d:abc.xls type xl5 fields name,age,sex for category='大学生'

"d:abc.xls" 为输出文件路径
"type xl5" 是输出格式,是excel2003的格式,不作改动
"fields name,age,sex" 只导出指定字段,全导出就不用了
"for category='大学生'" 只导出符合条件的记录,全导出就不用了

查询 同 sql

VF 常用函数: https://max.book118.com/html/2017/0620/116957551.shtm

原文地址:https://www.cnblogs.com/yier0705/p/14850386.html