Members BookmarksPolls Fresher Jobs Funny Photos B.Tech Projects New Member FAQ  



My Profile
Active Members
TodayLast 7 Days more...



Awards & Gifts
Online Exams

Fresher Jobs


Our fresher job section is exclusively for fresh graduates! Find jobs for freshers in major Indian cities including Bangalore, Chennai, Hyderabad, Pune or Kochi

Resources


Find educational articles, blogs, discussion threads and other resources.

Colleges


Find details about any college in India or search for courses.

Paid Surveys


website counter




Multiple Table Insert in Oracle


Posted Date: 17 Apr 2008    Resource Type: Articles/Knowledge Sharing    Category: Computer & Technology

Posted By: Vinothkumar K       Member Level: Gold
Rating:     Points: 5



We will use basic DML Command to insert the values into Oracle tables.

“Insert into” Command will be used to insert the values in the Oracle table, but basically, it will accept insertion for only one table.

“Multiple Table Insert” Concept was introduced from Oracle 9i. I tried the Multiple Table Insert in Single Query in Oracle 9i and above

Basic Syntax

Insert Into Values (Values of the column present in the Table);

Example

Insert into T1 values (5,’Data’);

Multiple Table insert Introduced from Oracle 9i and above.

Syntax for Multiple Table Insert

Insert ALL

Into Values

Into Values

Select from ;

Example Multiple Table Insert

Insert All

Into T1 values (Empid, Sal)

Into T2 Values (Empid, DOJ)

Select Eid Empid ,Amt Sal, Date DOJ

from Emp

Where Eid = 1000;



The above query will fetch the Records belongs to Eid 1000 from EMP and insert into T1 and T2 Table in the corresponding Columns




Responses

Author: Prasad    18 May 2008Member Level: Gold   Points : 2
Thanks for useful information


Feedbacks      
Popular Tags   What are tags ?   Search Tags  
(No tags found.)

Post Feedback


This is a strictly moderated forum. Only approved messages will appear in the site. Please use 'Spell Check' in Google toolbar before you submit.
You must Sign In to post a response.
Next Resource: 11g New features - SQL - PIVOT Table
Previous Resource: Oracle Advanced Queuing-Code Snippet
Return to Discussion Resource Index
Post New Resource
Category: Computer & Technology


Post resources and earn money!
 
Related Resources


Contact Us    Privacy Policy    Terms Of Use   

SpiderWorks Technologies Pvt Ltd. 2006 - 2007 All Rights Reserved.