title: How to use local variables in stored procedures?
body: <p>if I want to select any id from a table and want to insert it's value in another table as foreign key then how i will do it through stored procedure?</p>