我在下面编写了查询以在表中创建记录,但它抛出错误 - “已存在记录 ID 0。(132)”。我查询了表格,但记录不可用。我不确定为什么会出现此错误。
请帮忙。
define temp-table ttbudget no-undo like BudgetGroup.
define buffer b_BudgetGroup for BudgetGroup.
create ttbudget.
assign
ttbudget.BudgetGroupCode = "kepa"
ttbudget.BudgetGroupDescription = "kepa"
ttbudget.BudgetGroupIsActive = YES
.
create b_BudgetGroup.
buffer-copy ttbudget to b_BudgetGroup.
Flags Index Name Cnt Field Name
pu Prim 1 + BudgetGroup_ID
u UniqueIdx 2 + BudgetGroupCode
+ BudgetGroupCategory