結合と結合テーブルの特定の基準に基づいて、TablA に記入しようとしています。私が見つけたいくつかの例に基づいて、次の 2 つのジョブを試しました。しかし、ジョブをシンプルに保ちながら、テーブルを埋める方法がわかりません。
次のジョブを試しましたが、どちらも構文エラーが発生します。
static void AddDescription(Args _args)
{
TableA tableA;
InventTable inventTable;
str info;
;
ttsBegin;
insert_recordSet tableA
setting
tableA.ItemId = inventTable.ItemId;
tableA.Description = 'DescriptionHere';
join ItemId from inventTable
where TableA.ItemId == inventTable.ItemId &&
where CriteriaA == CriteriaValueA;
tableA.insert();
ttsCommit;
info("Done!");
}
次の仕事も試しました。
static void AddDescription(Args _args)
{
TableA tableA;
InventTable inventTable;
str info;
;
ttsBegin;
insert_recordSet tableA
join ItemId from inventTable
where CriteriaA == CriteriaValueA;
tableA.ItemId = inventTable.ItemId;
tableA.Description = 'DescriptionHere';
tableA.insert();
ttsCommit;
info("Done!");
}
明らかに、私は大きな一歩を踏み出せていません。この仕事を終える方向性を教えてくれる人はいますか?
構文が正しくありません。非常に包括的で多くのサンプルがあるため、関数に関するドキュメントを確認してください: https://msdn.microsoft.com/en-us/library/aa635694.aspx?f=255&MSPPError=-2147217396
あなたに関連する可能性のある 1 つのサンプルを次に示します。
INSERT_RECORDSET tabEmplProj5
(
Description
, EmployeeRecId
, ProjectRecId
)
Select
sDescriptionVariable
, RecId
from
tabEmpl3
join
tabDept2
where tabEmpl3 .DepartmentGuid == tabDept2 .DepartmentGuid
join RecId
from tabProj4
where tabDept2 .DepartmentGuid == tabProj4 .DepartmentGuid
;
この記事はインターネットから収集されたものであり、転載の際にはソースを示してください。
侵害の場合は、連絡してください[email protected]
コメントを追加