View Single Post
Join Date: Nov 2005
Posts: 1
Reputation: rohitk2000 is an unknown quantity at this point 
Solved Threads: 0
rohitk2000 rohitk2000 is offline Offline
Newbie Poster

Re: insert multiple rows in database

 
0
  #3
Nov 17th, 2005
Why use a stored procedure when we can do it in one sql??

This is an example of how to to it ....

INSERT INTO SEND_RULE(MRT_CODE, ISSUING_COMPANY_CODE, CARD_BRAND_CODE, SEND_ISSUING_COMPANY_CODE)
(SELECT MRT_CODE, ISSUING_COMPANY_CODE, CARD_BRAND_CODE, ISSUING_COMPANY_CODE SEND_ISSUING_COMPANY_CODE
FROM CARD_MRT_CONTRACT)
ORDER BY MRT_CODE, ISSUING_COMPANY_CODE, CARD_BRAND_CODE;

:mrgreen:

Rohit Kumar Singh

P.S> Im the best ;-)
Reply With Quote