By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
454,653 Members | 1,483 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 454,653 IT Pros & Developers. It's quick & easy.

How to use Scope_Identity with core java?

P: 1
I am inserting some data in a table
Expand|Select|Wrap|Line Numbers
  1. insert into Project VALUES ('Bugger','active') set @iVariable=SCOPE_IDENTITY()
now i want to use this @ivariable to insert its value in another table using java.
Please tell me how to do this?
Mar 25 '13 #1
Share this Question
Share on Google+
1 Reply


10K+
P: 13,264
What SQL language is this @iVariable in and how are you executing the statement from Java?
Mar 25 '13 #2

Post your reply

Sign in to post your reply or Sign up for a free account.