I need to change some data of one column from table1 and then, I will copy some of the table1 data to new_table, here is my example tables.
table1
id | url | user1_ign | user2_ign | message | fields that are not needed anymore
new_table
id | url | user1_ign | user2_ign | message
Basically, table1 have fields that are not in new_table. My problem is I do not know how to change the data in a field while copying it to a new table (already searched here).
I need to change the data of the url. Here is the layout.
table1
id | url        | user1_ign | user2_ign | message     | some field
1  | jj-HasZNsh | jj        | gg        | hello dude! | ...
new_table
id | url           | user1_ign | user2_ign | message
1  | jj-gg-HasZNsh | jj        | gg        | hello dude!
That is what I needed to do to, as you can see, I need to change the url in new_table based on the user1_ign and user2_ign. Is there a way of how to solve this?
UPDATE
I have this kind of url in table1 number-HasZNsh or alphabet-HasZNsh.
I need them to become like this in new_table
- number-HasZNsh->- ign1-ign2-HasZNsh
- alphabet-HasZNsh->- ign1-ign2-HasZNsh
This is what I need to do specifically.
 
     
    