on 3/8/01 3:40 PM, Scott Wang at [EMAIL PROTECTED] wrote:
> select distinct addr from tablename outfile filename.txt
>
> But how can I write the data to another table or even
> replace the information in the table with the output info?
insert into <another table> (addr) select distinct addr from <tablename>
You would probably have to go to a temp table first, then delete from the
original table and insert from the temp table back into the original...but
someone else may know better!
Thanks,
Geoff
---------------------------------------------------------------------
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