Jump to content

Moving data from one column to another


SteveVR

Recommended Posts

Please help!

I am trying to transfer data from one column (\"email_cust\") in a table to another column (\"email\") in the same table using phpMyAdmin. Renaming the columns doesn\'t do it since the data is then in the wrong place in the table.

The table is called \"links\".

I have tried the following: UPDATE `links` set email = email_cust;

but get the message \"The directory you set for upload work cannot be reached\"

Can anybody tell me what to do?

Thanks in anticipation. :!:

Link to comment
Share on other sites

Thanks for your reply.

In the end though, I worked out that I had to dump the contents of the table from within phpmyAdmin and then open a new phpmyAdmin window.

 

Using the command UPDATE `links` set email = email_cust

the data was read from the dump and copied from email_cust into the email field.

 

Yippee! don\'t have to cut and paste 1330 email addresses.

 

Thanks again :lol:

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.