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.
I don't know why someone said useless, but it does have that pesky kernel driver bundled, and it's in perennial turmoil. When it goes bad, it goes very bad, and it's impossible to predict when it will due to system differences. I know that they're in the middle of development for a major new version that will include a completely new driver, one that they expect will largely solve the problem, but that's a ways out and it's unproven at this point.
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