谁能弄清楚我在以下 PRO*C 代码中的错误是什么?我无法编译这个:
int v1 = 5096;
int v2 = 8110;
int v3 = 8111;
int v4 = -1;
char stmt[6000];
strcpy(stmt, " MERGE INTO LDX_STYLE_MOVEMENTS ssd USING (SELECT :1 pk from dual) ssd_pk ON (ssd.style_movements_pk = ssd_pk.pk) WHEN NOT MATCHED THEN insert (style_movements_pk, style, from_subclass, to_subclass, reclassified_date, change_type_fk) values(LDX_STYLE_MOVEMENTS_SEQ.nextval , null, :2, :3, null, :4 )");
EXEC SQL execute immediate :stmt using :v1, :v2, :v3, :v4;