MySQL Forums
Forum List  »  MySQL Workbench

Re: copy columns in tables
Posted by: robert bakaric
Date: September 06, 2008 12:53PM

something like :

insert into table1.namea
select NAMEA
from table0

where you have to have table1 and it's coloumn created so

use db;
drop table table1;

create table table1 (
namea varchar (255)
);

insert into table1 (namea)
select NAMEA
from table0 ;

---
if this is what you were thinking of ? also you could search if there is a special copy function to shorten this code

Options: ReplyQuote


Subject
Views
Written By
Posted
14445
September 06, 2008 07:38AM
Re: copy columns in tables
6552
September 06, 2008 12:53PM
4446
September 07, 2008 06:52AM


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.