2
是否有可能在运行时将表设置为临时表?临时表在运行时
是否有可能在运行时将表设置为临时表?临时表在运行时
使用setTmp
方法将记录缓冲区标记为临时记录。如果您想避免insert
方法中所做的任何其他更新,请记得调用doInsert
方法而不是insert
方法。
要有第二个记录缓冲区,请使用setTmpData
方法参考相同的临时表。
这个测试工作说明了如何使用:insert`只`insert_recordset`上`
static void TmpTest(Args _args)
{
CustTable custTable, custTable2;
;
custTable.setTmp();
custTable.AccountNum = "123Tmp";
custTable.Name = "Temporary?";
custTable.doInsert();
custTable2.setTmp();
custTable2.setTmpData(custTable);
select custTable2 where custTable2.AccountNum == "123Tmp";
info(custTable2.Name);
}
使用'skipDataMethods'方法不起作用。 –