尝试此代码:
static void StackOverflow(Args _args)
{
SysUserInfo sysUserInfo;
// Method 1
ttsBegin;
while select forUpdate sysUserInfo
{
SysUserInfo.DefaultCountryRegion = "USA";
SysUserInfo.update();
}
ttsCommit;
// Method 2
update_recordSet sysUserInfo
setting DefaultCountryRegion = "USA";
info("End process");
}