MySQL Forums
Forum List  »  InnoDB

Query to combine columns
Posted by: Harshada Thakur
Date: April 04, 2013 11:49PM

Hi,
I am new to MySql. Please help me out to solve this query.

I need to combine two columns of data and insert in new column

I have two columns -
col1 col2
1 2
6 3
8 1
9 6

Now I need the table to look like below -

col1 col2 col3
1 2 12
6 3 63
8 1 81
9 6 96

Options: ReplyQuote


Subject
Views
Written By
Posted
Query to combine columns
1076
April 04, 2013 11:49PM
637
April 05, 2013 10:20PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.