Improve company productivity with a Business Account.Sign Up

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 4648
  • Last Modified:

copy data from one column to another column of table, pl/sql

i have 6 columns in the table.
i have to write a sql query to copy data of 1 columns in the another column of the database.any help appreciated.. am using mysql
0
sakvk
Asked:
sakvk
2 Solutions
 
Shaju KumbalathDeputy General Manager - ITCommented:
if u want to update col2 with col1
update <table_name>  set col2 =col1;
 
0
 
FinecCommented:
This code will update you row's one_column to this rows's other_column, where your id is 'yourid'.
UPDATE table_name SET one_column=other_column WHERE id=yourid

Open in new window

0
 
sakvkAuthor Commented:
thanku
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.

Join & Write a Comment

Featured Post

The 14th Annual Expert Award Winners

The results are in! Meet the top members of our 2017 Expert Awards. Congratulations to all who qualified!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now