<Table> 已经存在,记录 ID 为 0。 (132) - PROGRESS 4GL

问题描述 投票:0回答:0

我在下面编写了查询以在表中创建记录,但它抛出错误 - “已存在记录 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
openedge progress-4gl
© www.soinside.com 2019 - 2024. All rights reserved.