阅读背景:

iSeries DB2—是否存在从insert语句中选择标识值的方法?

来源:互联网 

I know we're rare, us poor folk that are using iSeries for DB2/AS400, but I'm hoping someone can answer this simple question. Is there any way to return the identity value from an insert statement without using two lines of SQL? I'm being forced to use inline SQL in C# to perform an insert, and then I need to use the identity generated for the insert for something later on. Simply put, I need the iSeries DB2 equivalent of Oracle's "RETURNING." I.e.,I know we're rare, us poor folk that are using




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: