How to use Scope_Identity with core java?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • chavi
    New Member
    • Mar 2013
    • 1

    How to use Scope_Identity with core java?

    I am inserting some data in a table
    Code:
    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?
    Last edited by Rabbit; Mar 25 '13, 03:52 PM. Reason: Please use code tags when posting code.
  • r035198x
    MVP
    • Sep 2006
    • 13225

    #2
    What SQL language is this @iVariable in and how are you executing the statement from Java?

    Comment

    Working...