Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7196653
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T20:49:10+00:00 2026-05-28T20:49:10+00:00

quite the same question as here : Copy data from one existing row to

  • 0

quite the same question as here : Copy data from one existing row to another existing row in SQL?

but in Oracle, where update ... from and update t1, t2 are not supported.

I’ll repeat it here in my own words ;
I have a table T, which looks like this :

table

and as the arrow shows it, I want to copy everything from r where c = 1 to e where c = 2, with t matching.

I have the select statement to get what I want to copy :

select 
  told.t, 
  told.r
from 
  T told 
  inner join 
  T tnew
on 
  told.t= tnew.t
where 
  told.c = 1
  and 
  tnew.c = 2

I just don’t know how to put this together in an update. An Oracle update, specifically.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-28T20:49:11+00:00Added an answer on May 28, 2026 at 8:49 pm

    try this:

    update T tnew
    set tnew.e = (select told.r from T told where told.c = 2 and told.t = tnew.t)
    where tnew.c = 1
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

This question is related to (but perhaps not quite the same as): Does Django
First of all, my question is not quite the same as Is Office 2007
I'm having quite a bit of pain inserting and deleting UITableViewCells from the same
I know exactly the same question appears here on StackOverflow , nevertheless it does
Quick question/clarification required here. I have a DB table that will quite possibly have
Update: The issue still persists although it is not quite the same as before.
Not quite sure I have the question fully formed, but what I'm trying to
I'm quite ashemed to ask this question here because I'm sure that I'm missing
I realize that there was a similar question asked here , but this is
I have question quite much related to this one I asked a while ago

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.