Solved

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

Posted on 2008-10-06
5
4,592 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
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

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Oracle SQL - Query help 7 54
exp/imp 25 73
SQL Server - Replace Carriage Returns for Excel Exports 17 49
SSRS 2012 r2 - Parm Drop Down has Date/Time 12 30
How to Unravel a Tricky Query Introduction If you browse through the Oracle zones or any of the other database-related zones you'll come across some complicated solutions and sometimes you'll just have to wonder how anyone came up with them.  …
Using SQL Scripts we can save all the SQL queries as files that we use very frequently on our database later point of time. This is one of the feature present under SQL Workshop in Oracle Application Express.
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.
This video shows how to Export data from an Oracle database using the Datapump Export Utility.  The corresponding Datapump Import utility is also discussed and demonstrated.

813 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now