Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Database table 'REGUP'

Former Member
0 Likes
494

Hi,

In program,

first partie: insert data into 'regup' table

second partie: i select data that i insert in first partie

the problem is that the result of my select is null while the data was inserted.

NB: If i put 'break point' between first and second partie the result is good

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
431

Keep a WAIT statement between them like

WAIT UP TO 2 SECONDS.

Regards,

Kiran Bobbala

3 REPLIES 3
Read only

vinod_vemuru2
Active Contributor
0 Likes
431

Hi Simin,

After INSERT statement put COMMIT WORK statement. But my question is if u already have the data available(Which u inserted) then why do u need to select the same data again?

Instead u can use the inserted data right???

Thanks,

Vinod.

Edited by: Vinod Reddy Vemuru on Jun 19, 2008 1:42 PM

Read only

Former Member
0 Likes
432

Keep a WAIT statement between them like

WAIT UP TO 2 SECONDS.

Regards,

Kiran Bobbala

Read only

0 Likes
431

Thanks experts.

I put 'work', 'commit work', MF 'DB_commit', 'commit', etc... ---> no

but not 'WAIT UP TO 2 SECONDS.' this syntax is very very helpful thank y so much