Click here to Skip to main content
15,888,461 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
Hi Everyone

I have changed all row in a column in a table.

I need the values. I don't have back up.

The data is very very important.

Any suggestions please.........

Please help me. :(

SwaxRak
Posted
Comments
Sergey Alexandrovich Kryukov 5-Jul-11 6:41am    
Undo?!!! in SQL?!!!
--SA

Oops.

Unless this is within a transaction (and you haven't committed it) then your previous data is gone for good.

Sorry - but this is why good, regular, backups are so important.
 
Share this answer
 
Comments
SwaxRak 5-Jul-11 6:30am    
There is no way?????? :(
OriginalGriff 5-Jul-11 6:37am    
No. I don't know of any database that offers an undo facility - think how much space it could use in a multiuser environment!
What they offer is a Transaction based system: the changes aren't permanent until you commit the changes to allow you to roll back in the event of a data problem.
Sorry - sound like you have a lot of typing ahead...
Sergey Alexandrovich Kryukov 5-Jul-11 6:42am    
This is almost like "I low-level formatted my HD, how to undo it?" :-)
My 5.

Sorry for SwaxRak.
--SA
Only possible way is using DB transaction logs ... if there is one for mysql.
 
Share this answer
 
If you have no backup and you have no transaction then you have no data. Sorry.
The lesson here is to always back up your data.
Never test code in a production environment. Then you can always migrate the data backwards from production into your development environment.
Form good programming/system maintenance practices now while you are learning so that you don't do this in a professional environment where it will cost you your job.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900