Jump to content

[SOLVED] Copying table - loss of data?


vineld

Recommended Posts

I just copied a table in my database by exporting it and then simply replacing the table name before running the exported sql. I was surprised to see that the new table was maybe 5-6% smaller in total size (the rows and indices are the same) than the original one. Is there a chance of some data being lost? If so, is there any easy way that I can check this without checking every single value with a php script?

Link to comment
https://forums.phpfreaks.com/topic/165277-solved-copying-table-loss-of-data/
Share on other sites

When you delete rows, the empty space is left as is. If new data fits within the empty space, it is reused, but there is going to be some amount of unusable empty space in a database that has had a lot of delete operations on it.

 

 

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.