Updating the column2 data with Column1 data in oracle

Hi

I want to update the column2 data with column1 data and Column1 data with value 2 in oracle.

can you please provide me the Optimised query for this.
praveen1981Asked:
Who is Participating?
 
sdstuberCommented:
update yourtable set column2=column1 ,column1=2

if you meant column2 instead of value 2

update yourtable set column2=column1 ,column1=column2
0
 
praveen1981Author Commented:
Thanks, it solved the problem
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.