INSERT INTO LOOPT2 (TOKEN_STATUS)
VALUES (1) where Token_NO = :Token_No;
我知道这不适用于克劳斯的详细说明,请帮助我,我所做的是这个操作,但不适用于我,请帮助我
DECLARE
TOKEN_NO NUMBER;
TOKEN_STATUS1 NUMBER;
BEGIN
GO_BLOCK('TOKEN_REC2');
FIRST_RECORD;
LOOP
BEGIN
SELECT SR_NO, TOKEN_STATUS
INTO TOKEN_NO, TOKEN_STATUS1
FROM LOOPT2
WHERE TOKEN_STATUS = :TOKEN_NO
AND V_ID=1;
EXCEPTION
WHEN NO_DATA_FOUND THEN
INSERT INTO LOOPT2 (TOKEN_STATUS)
VALUES (1);
END;
EXIT WHEN :SYSTEM.LAST_RECORD = 'TRUE';
NEXT_RECORD;
END LOOP;
COMMIT;
END;
答案 0 :(得分:1)
似乎您需要一个class Result : INotifyPropertyChanged
{
private string c1;
public string C1
{
get => this.c1;
set
{
this.c1 = value;
OnPropertyChanged();
this.HasChanegs = true;
}
}
private string c2;
public string C2
{
get => this.c2;
set
{
this.c2 = value;
OnPropertyChanged();
this.HasChanegs = true;
}
}
private bool hasChanges;
public string HasChanges
{
get => this.hasChanges;
set
{
this.hasChanges = value;
OnPropertyChanged();
}
}
}
语句,例如:
if
或dual
表:
..
EXCEPTION
WHEN NO_DATA_FOUND THEN
IF ( TOKEN_NO = :TOKEN_NO ) THEN
INSERT INTO LOOPT2 (TOKEN_STATUS)
VALUES (1);
END IF;
END;
..