auto incrementで生成した値を取得する。


select IDENTITY_VAL_LOCAL() from sysibm.sysdummy1
とりあえずDB2でも動いた。
型マッピングが怪しいけど。