Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.misc -> Re: update two oracle tables with single SQL Query?

Re: update two oracle tables with single SQL Query?

From: sybrandb <sybrandb_at_gmail.com>
Date: 16 Apr 2007 04:17:10 -0700
Message-ID: <1176722230.047665.48350@n59g2000hsh.googlegroups.com>


On Apr 16, 12:49 pm, "Mahesh" <registered.h..._at_gmail.com> wrote:
> Hi All
> I just need to know is it possibel to update two different tables in a
> single SQL Query??
>
> Thanks in advance
> Maheshkumar

You can update inline views

update (select empno, ename, deptno, dname

            from emp, dept
            where emp.deptno = dept.deptno)
set

etc.

--
Sybrand Bakker
Senior Oracle DBA
Received on Mon Apr 16 2007 - 06:17:10 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US