-
比如:SELECT No, Name, No as EmpNo,Name as EmpName,Email FROM WF_Emp WHERE No LIKE
'%@key%'
- 初始化列表参数,该查询语句必须有No,Name两个列,注意显示数量限制。
- 很多场合下需要用到父子流程,在启动子流程的时候需要选择一个父流程。
-
实例:SELECT a.WorkID as No, a.Title as Name, a.Starter, a.WorkID As PWorkID, '011'
as PFlowNo, a.FK_Node as PNodeID FROM WF_GenerWorkflow a, WF_GenerWorkerlist b WHERE
A.WorkID=b.WorkID AND B.FK_Emp='@WebUser.No' AND B.IsPass=0 AND A.FK_Flow='011'
AND a.Title Like '%@Key%'
|
- 比如:SELECT top 15 No,Name ,No as EmpNo,Name as EmpName ,Email FROM WF_Emp
-
或者:SELECT No,Name ,No as EmpNo,Name as EmpName ,Email FROM WF_Emp WHERE ROWID <
15
- 该数据源必须有No,Name两个列, 其他的列要与开始节点表单字段对应。
- 注意查询的数量,避免太多影响效率。
|