I am relatively new to Mysql / PHP and have a database currently set up, but I think I have done it partly wrong.
I have a table containing around 1,500 entries. In these entries there is some data in 5 columns. I have been told it would be better if this info was in a new table.
I would like to move data from these 5 columns and I would also like it to copy the ID as this is important. How would I go about this?
I will give names of the table and columns if that will help.
Does anyone know how the Ghostery extension works in Google Chrome? I switched to that quite a while ago, from uBlock Origin after uBlock started having issues just working. Personally I love Ghostery and I think it does a fantastic job, and I really enjoy the whitelist I have built up as well for tons of websites that don't serve ads so that it isn't blocking good elements of them by accident.
>pointed to a British firm called SafeToNet
There it is. Some UK MP's brother/friend/spouse owns this shitware company and wants those kickbacks right into their own pocket.
DNS based blocking only works as long as the ads are served from hosts than the content. Closing that loophole would be pretty easy. I'd say it sits in a sweet spot of being just nerdy enough that the average person doesn't set it up, meaning it isn't really on the big companies' radars.
Question
marklcfc
I am relatively new to Mysql / PHP and have a database currently set up, but I think I have done it partly wrong.
I have a table containing around 1,500 entries. In these entries there is some data in 5 columns. I have been told it would be better if this info was in a new table.
I would like to move data from these 5 columns and I would also like it to copy the ID as this is important. How would I go about this?
I will give names of the table and columns if that will help.
Current table name = players
Columns = playerid, buyfrom, buydate, buydate2, buyfee, buynote.
I need to move this data from each entry into a new table called transfers. Can anyone advise??
Link to comment
https://www.neowin.net/forum/topic/1076463-sql-query-required-for-moving-data/Share on other sites
6 answers to this question
Recommended Posts