We help IT Professionals succeed at work.
Get Started

Oracle Rownum Dump

williamwlk
williamwlk asked
on
451 Views
Last Modified: 2012-08-13
Hello,

In oracle, I would like to achieve this

- I have one million records:
select count(bookid) from books where location='W01' and backuplocation='B01';
1,000,000
- I would like change any 150,000  bookid's 'location'='W01' to 'W02', where 'backuplocation'='B01'. [sql1]
- i commit the change.
- In case of problems, I would like to change those bookid's 'location'='W02' back to 'location'='W01 where 'backuplocation'='B01'. In another words, I would like to rollback [sql1].

Help, Please.

W


Comment
Watch Question
This problem has been solved!
Unlock 4 Answers and 39 Comments.
See Answers
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE