|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Get inside! Sample the range of functionality easily built with JMSL Library for Time Series Data Analysis, Heat Maps, Portfolio Optimization, Monte Carlo Simulation, Stock Price Charting and more. Download Now! |
|
#1
|
|||
|
|||
|
Identity_val_local()
Hi,
I have in a procedure create procedure x .... DECLARE temp_cursor CURSOR WITH HOLD WITH RETURN TO CLIENT FOR SELECT v_UNIQUEID FROM SYSIBM.SYSDUMMY1; insert into y select from .......; values IDENTITY_VAL_LOCAL() INTO v_UNIQUEID; (IDENTITY_VAL_LOCAL() is the identity from y table) ... open temp_cursor; end; the value for IDENTITY_VAL_LOCAL() is NULL. Can you explain me why ? In SQL Server you can use the print command to see the value for an parameter. What can be used in DB2? Thanks |
![]() |
| Viewing: Dev Shed Forums > Databases > DB2 Development > Identity_val_local() |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|