Skip to Main Content
  • Questions
  • need a single update query for below question

Breadcrumb

Question and Answer

Connor McDonald

Thanks for the question, kheshava.

Asked: November 14, 2017 - 9:38 pm UTC

Last updated: November 15, 2017 - 6:08 am UTC

Version: 11G

Viewed 1000+ times

You Asked

I've table locations and it contains below data :
loc_id location_name
101 newyork
102 losangels
103 chicago
104 boston
105 dallas

now is that possible to write a single query to update all records like below
loc_id location_name
101 losangels
102 Chicago
103 boston
104 dallas
105 newyork

and Connor said...

Yes it is possible, but I'm curious to know why ? What the is the business reason for this ?

Is this answer out of date? If it is, please let us know via a Comment

More to Explore

PL/SQL demos

Check out more PL/SQL tutorials on our LiveSQL tool.

PL/SQL docs

PL/SQL reference manual from the Oracle documentation library