* Tom Nickels > I have "Database 1", table "userdata", field "username" > > I need to copy the above mentioned data to: > > "Database2", Table "chat_data", field "nick" > > I have no clue how to do it! Can anybody tell me the string?
If the destination table already exist, something like this: INSERT INTO Database2.chat_data SELECT username AS nick FROM `Database 1`.userdata <URL: http://www.mysql.com/doc/en/INSERT_SELECT.html > Note the backticks used for the database name containing a space: <URL: http://www.mysql.com/doc/en/Legal_names.html > -- Roger --------------------------------------------------------------------- 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