Tuesday, December 26, 2006

PeopleTools Reference: Meta-SQL %Update

generates an update statement to change the database to match the values in the record object.


Example

Local Record &recJob;
&recJob.EMPLID.value = &emplid;
&recJob.EMPL_RCD.value = &empl_rcd;
SQLExec("%SelectByKeyEffdt(:1)", &recJob, %Date, &recJob);
&recJob.DEPTID.value = &deptid;
SQLExec("%Update(:1)", &recJob);


This post has moved to Wordpress.

No comments: