Paul, RTFM : http://www.mysql.com/doc/I/N/INSERT_SELECT.html
[quote] INSERT [LOW_PRIORITY] [IGNORE] [INTO] tbl_name [(column list)] SELECT ... With INSERT ... SELECT statement you can quickly insert many rows into a table from one or many tables. INSERT INTO tblTemp2 (fldID) SELECT tblTemp1.fldOrder_ID FROM tblTemp1 WHERE tblTemp1.fldOrder_ID > 100; . . [/quote] ----------------------- Alain Fontaine Consultant & Developer VAlain S.A. Tel: +32-4-2522950 ----------------------- -----Original Message----- From: Paul Reilly [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 07, 2002 1:54 PM To: [EMAIL PROTECTED] Subject: Re: dumping between tables? > > I want to dump the contents of one table in to another table > > which has the same structure in MySQL, with just one column type changed > > from VARCHAR to TEXT. Whats the best way to do this? > > > Would INSERT...SELECT suit you? > =dn > > Yes, but it's a big table. Is there a way to do this nicely? ie, something like SELECT * from <table1> | INSERT - INTO <table2> ?? I was considerign using mysqldump, but I only want to reload one table in a database, and I'm not sure the mysqldump syntax for specific tables. Thanks Paul --------------------------------------------------------------------- Before posting, please check: http://www.mysql.com/manual.php (the manual) http://lists.mysql.com/ (the list archive) To request this thread, e-mail <[EMAIL PROTECTED]> To unsubscribe, e-mail <[EMAIL PROTECTED]> Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php --------------------------------------------------------------------- Before posting, please check: http://www.mysql.com/manual.php (the manual) http://lists.mysql.com/ (the list archive) To request this thread, e-mail <[EMAIL PROTECTED]> To unsubscribe, e-mail <[EMAIL PROTECTED]> Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php