0

Inserting rows into table one by one is more hardy and tedious instead of inserting rows into more than one tables at one time with just in single SQL query

Because I have 10 tables in which I need to insert rows so it would be more boring to put rows only in one table at a time rather than all rows inserts at all tables

So please suggest me a better query to insert all rows at all tables in one time

5
  • Oracle Express Edition 11G Commented Nov 18, 2016 at 14:52
  • "more boring"? This is clearly not your intention. Also you have to give a better description of your use-case if you want to get serious answers. Commented Nov 18, 2016 at 14:52
  • THe good news is that Oracle 11G does support multiple tables insert Commented Nov 18, 2016 at 14:53
  • You could use SSIS. Commented Nov 18, 2016 at 16:08
  • No sorry , I didn't mean to say boring , but regarding my context, is there any way to achieve what i exactly questioned above . Your cooperation in this regard will be highly appreciated Commented Nov 18, 2016 at 16:20

1 Answer 1

1

For multitable insert you can use the below syntax if you have to insert a limited set of records at 1 go:

INSERT ALL 
    INTO AA(A,B,C,D,E,F) VALUES (1,2,3,4,5,6)
    INTO AB(A,B,C,D,E) VALUES (5,4,3,4,2)
SELECT * FROM DUAL;
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.