Jump to content

Moving data in the same table


zonkd

Recommended Posts

Is there a way to move data, something like ...

 

(from) field1, field2, field3, field4, id IN(200, 201, 202, 203, 204) in table1

 

to  field1, field2, field3, field4, id IN(800, 801, 802, 803, 804) in table1

 

I would like to move the data rather than duplicate it.

 

Is this possible, please, Experts?

Link to comment
Share on other sites

That looks very good, corbin, but I don't follow the '+600'

 

Is the number, 600, the id number of the first of the group of rows that I want to update? So if there were five rows affected, it would affect 600, 601, 602, 603, and 604?

 

Is that how it works, please?

 

What about another way? Could I use another field then?

 

The columns I want to move are part of a number of articles that will appear in the month='October' student news pages. Can I stipulate that they should appear in the part of the table with the month = 'November' columns, please?

 

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.