Hi,
you should handle the "next stamp into" statement like a DB-procedure call. The
following code snippet illustrates the usage of the "next stamp into" statement:
CallableStatement cs = this.connection.prepareCall("NEXT STAMP INTO ?");
/*register output value*/
cs.registerOutParameter(1, Types.BINARY);
boolean erg = cs.execute();
try {
byte [] ergval = cs.getBytes(1);
System.out.print("next stamp is: ");
for (int i = 0; i < ergval.length; i++) {
System.out.print(ergval[i]);
}
}
catch (Exception ex) {
ex.printStackTrace();
}
Regards,
Marco
----------------------------------------------
Marco PASKAMP
SAP DB, SAP Labs Berlin
> Hello,
>
> I have a question on "next stamp into" statement. I
> could not find how I can use this statement for Java. From
> the documentation on the syntax of the statment, next stamp
> into :variable. How does it work in Java? Also, why is
> autogenerated key function not supported in sapDB? Thank you
> for your time.
>
>
>
>
> Kevin Aung
>
_______________________________________________
sapdb.general mailing list
[EMAIL PROTECTED]
http://listserv.sap.com/mailman/listinfo/sapdb.general