Sven,
Saturday, May 04, 2002, 4:52:00 PM, you wrote:

SB> The mySQL DB I have to rebuild was only one big table. Afer developing a 
SB> new DB design for it, I ran into the problem of transfering the data 
SB> from the old to the new database.
SB> I need to split up the records and insert them into the specific tables. 
SB> My problem is that I can not figure out (as a total novice on mySQL) how 
SB> to insert the data properly. Every time I try there's either a SQL error 
SB> or the data is messed up and not ordered as it should be.

SB> I tried to use the following statement:

SB> insert into priv_details (hobbies, experi, quali, marital [.....]) 
SB> select me.hobbies, me.experi [..]  from memberscopy me, priv_details pd 
SB> where pd.id=me.id;

SB> What can i do?

First of all, read the manual:
      http://www.mysql.com/doc/I/N/INSERT_SELECT.html

You can't use your table priv_details in the SELECT statement. 

SB> Regards,
SB> Sven




-- 
For technical support contracts, goto https://order.mysql.com/?ref=ensita
This email is sponsored by Ensita.net http://www.ensita.net/
   __  ___     ___ ____  __
  /  |/  /_ __/ __/ __ \/ /    Victoria Reznichenko
 / /|_/ / // /\ \/ /_/ / /__   [EMAIL PROTECTED]
/_/  /_/\_, /___/\___\_\___/   MySQL AB / Ensita.net
       <___/   www.mysql.com




---------------------------------------------------------------------
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

Reply via email to