Skip to Main Content

SQL & PL/SQL

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Updating multiple rows with different values

751234Oct 15 2010 — edited Oct 15 2010
Hi!
I have a problem. I need to update more then 1000 rows with different values. How can I do it?
For exsample i have table:
id; color, date,
1 red
2 green
3 white

I need to update date field.

Update table
set date='01.02.03'
where id=1

Update table
set date='01.03.03'
where id=2


Maybe there is way how to update multiple rows at one query?

Sorry for my bad english.
Thanks!
This post has been answered by 789895 on Oct 15 2010
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Nov 12 2010
Added on Oct 15 2010
4 comments
2,228 views