1、定义检索参数:
数据窗口下,design/retrieval arguments 命令,系统弹出参数定义,如定义 name,type 分别为 :staff_id ,string
2、where条件子句中运用检索参数 ,where staff_id = :staff_id
3、窗口中事件的定义:
sting staff_id
staff_id=sle_1.text
connect using cqlca;
dw_1.settransobject(sqlca)
dw_1.retrieve(staff_id)
disconnect using sqlca;
===================
不是所有情况都要使用检索参数的,但当数据量较大或数据各字段内容中存在包含关系时,为检索出有效信息,就必须使用检索参数,来提高效率和检索的准确性