Solved

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

Posted on 2008-10-06
5
4,612 Views
Last Modified: 2013-12-07
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
Comment
Question by:sakvk
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
5 Comments
 
LVL 15

Accepted Solution

by:
Shaju Kumbalath earned 250 total points
ID: 22656983
if u want to update col2 with col1
update <table_name>  set col2 =col1;
 
0
 
LVL 4

Assisted Solution

by:Finec
Finec earned 250 total points
ID: 22657007
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
 

Author Comment

by:sakvk
ID: 22672610
thanku
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
SQL query 7 50
SQL Query - Multiple match on field with no extras 7 37
Deleting multiple child tables from parent in one SQL statement 20 56
Convert summed columns to Rows 6 25
Cursors in Oracle: A cursor is used to process individual rows returned by database system for a query. In oracle every SQL statement executed by the oracle server has a private area. This area contains information about the SQL statement and the…
If you find yourself in this situation “I have used SELECT DISTINCT but I’m getting duplicates” then I'm sorry to say you are using the wrong SQL technique as it only does one thing which is: produces whole rows that are unique. If the results you a…
This video shows information on the Oracle Data Dictionary, starting with the Oracle documentation, explaining the different types of Data Dictionary views available by group and permissions as well as giving examples on how to retrieve data from th…
This video shows syntax for various backup options while discussing how the different basic backup types work.  It explains how to take full backups, incremental level 0 backups, incremental level 1 backups in both differential and cumulative mode a…

710 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question