Hi!
I have two tables Address(address_id, street) and Employee(emp_id,address_id,name). // address_id in Employee table is foreign key
Here is my stored procedure.
CREATE OR REPLACE PROCEDURE address_proc
(street in varchar2,
name in varchar2)
is
BEGIN
INSERT INTO address
VALUES (address_id_seq.nextval,street);
INSERT INTO employee
VALUES (emp_id_seq.nextval,address_id_seq.currval,name);
commit;
END;
Now, how can I insert data from a webpage that has input text field for street and name? I mean to say that a webpage has two input fields street and name. Now I have to save those two fields in separate tables with using the single stored procedure as given above. I am using Oracle 9i and ASP.NET 2.0
Any suggestions are highly appreciated.