Hi friends,Can any one tell me how can we insert some data into Multiple Table Using ONE SINGLE QUERY. Its an Interview Question so please reply me If any one can solve this asap.
Thanks in Advance
One can do it using insert all command.
One can do it by using the following command:INSERT ALLINTO suppliers (supplier_id, supplier_name) VALUES (1000, 'IBM')INTO suppliers (supplier_id, supplier_name) VALUES (2000, 'Microsoft')INTO customers (customer_id, customer_name, city) VALUES (999999, 'Anderson Construction', 'New York')SELECT * FROM dual;
Sign up for STechies
Ask Question From Our Experts
All the site contents are Copyright © www.stechies.com and the content authors. All rights reserved.
All product names are trademarks of their respective companies. The site www.stechies.com is in no way affiliated with SAP AG.
Every effort is made to ensure the content integrity. Information used on this site is at your own risk.
The content on this site may not be reproduced or redistributed without the express written permission of
www.stechies.com or the content authors.