Skip to Main Content

SQL & PL/SQL

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

how to make stored procedure for inserting data in two tables

san_crazyOct 10 2009 — edited Oct 12 2009
I am new in database technology.
I want to use stored procedure for inserting data in two tables using ASP.Net technology.

How can I do this using single SQL query?
below is the query for inserting in a single table.what should I add in this so that It can insert data in two tables?

String query = "INSERT INTO `zeestarretail`.`cash_memo_product` (`MemoID` ,`product_id` ,`MRP` ,`ptype` ,`p_percent` ,`p_disc` ,`rate` ,`qty` ,`itemname` ,`gross_disc_percent` ,`discount` ,`saleamount` )";
query += " VALUES (@maxProd, @prodid, @mrp, @ptype ,@p_percent ,@p_disc ,@rate ,@qty ,@itemname ,@gross_disc_percent ,@discount ,@saleamount)";
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Nov 9 2009
Added on Oct 10 2009
7 comments
1,052 views