473,799 Members | 3,638 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

deshacer cambios

Hola!

No se si es posible pero no encuentro la forma de deshacer un update.
Resulta que el update lo hice sin especificar la clausula 'where' y se
ha realizado el cambio en todos los registros. Por lo que he leido
'update' no lleva implicito un commit por lo que supongo que haya
alguna forma de deshacer los cambios ¿estoy en lo cierto?

saludos!
Jul 23 '05 #1
1 10898
jorge wrote:
Hola!

No se si es posible pero no encuentro la forma de deshacer un update.
Resulta que el update lo hice sin especificar la clausula 'where' y se
ha realizado el cambio en todos los registros. Por lo que he leido
'update' no lleva implicito un commit por lo que supongo que haya
alguna forma de deshacer los cambios ¿estoy en lo cierto?

saludos!


My Spanish is poor but if I understand you, you are asking if you can
undo the effects of an UPDATE statement that you executed without
specifying a WHERE clause.

UPDATE, like other commands in MySQL, executes with autocommit by
default. Still, it is possible to roll back a transaction only if you
use InnoDB tables. MyISAM tables do not support transactions, in other
words MyISAM tables always execute statements as if in autocommit mode.

I'm very sorry to hear it, but you may have changed all your data
without possibility of recovering. If you made a backup of the data
before your UPDATE, then you must use the backup now to restore the
original values for each record.

Mi español es pobre pero si le entiendo, usted está preguntando si usted
puede deshacer los efectos de una declaración de la UPDATE que usted
ejecutó sin especificar WHERE cláusula.

UPDATE, como otros comandos en MySQL, se ejecuta con el autocommit por
defecto. No obstante, es posible rodar detrás una transacción solamente
si usted utiliza las tablas de InnoDB. Las tablas de MyISAM no apoyan
transacciones, en otras palabras que las tablas de MyISAM ejecutan
siempre declaraciones como si en modo del autocommit.

Estoy muy apesadumbrado de oírlo, pero usted pudo haber cambiado todos
sus datos sin la posibilidad de recuperación. Si usted hizo una reserva
de los datos antes de su UPDATE, entonces usted debe ahora utilizar la
reserva para restaurar los valores originales para cada expediente.

Regards,
Bill K.
Jul 23 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
3918
by: Alma | last post by:
Hola a todos. Ojala alguien pueda ayudarme con esto. Tengo una base de datos en Oracle, y necesito detectar cambios o registros nuevos en la base de datos (esto lo hago con triggers), pero mi problema es que algunos de esos datos, tengo que pasarlos a una B.D. en Sql Server, pero esto cambios tengo que pasarlos en linea. Alguien puede darme alguna idea de como hacer esto.
2
5897
by: RICARDO LOPEZ TREJO | last post by:
TENGO UN SUPER PROBLEMA, HICE UN DELETE A UNA TABLA EN SQL SERVER 2000 QUE NO DEBI HABER HECHO, COMO PUEDO DESHACER ESE DELETE.
0
2785
by: microsoft | last post by:
Hi People, when I try to modify an active directory user programatically, I receive the following exception: The server is unwilling to process the request Reading the microsoft web site, I found this article: http://support.microsoft.com/default.aspx?scid=kb;EN-US;248717 that says the following: ..........................
13
2401
by: Ch0rY | last post by:
Hola, He hecho en VB.NET, el juego del bingo al completo, osease, el juego propiamente dicho y un generador de cartones. 1) Y he pensado que podria controlar el juego atraves del ordenador en su monitor, y los resultados ( las bolas, el tablero) mostrarlos en el televisor, para eso uso la capacidad de la targeta grafica, pero lo que yo quiero es que mientras en el monitor del ordenador se vean los botones para controlar el juego y...
0
2747
by: Santiago Cassina | last post by:
Hi list. I just want to send to you an sql file containing tools for audit the UPDATE and DELETE statements in a database by saving all the modifications made by a network/system/database user. I hope you find it useful El Santi =====
1
1531
by: gandalf | last post by:
CON LA PASION DE SIEMPRE HABLO DE CHAVEZ, DE LA MEDICINA CUBANA... Y DE SU PROPIA MUERTE Relato de la nueva gran batalla de Fidel El líder cubano mostró cómo evoluciona su recuperación en el encuentro con el diputado argentino. También elogió a Hugo Chávez por su lucha para ingresar al Consejo Permanente de la ONU y por aliarse a sectores medios para "hacer los cambios democráticamente" y mostró su preocupación por terminar de editar sus...
9
11939
by: Cesar | last post by:
Hello there, A java programmer sent me a wsdl file, which I have to use to consume his web methods. When I run the wsld.exe tool to generate the class' code, I get the following message: CODEGEN: The operation binding 'getAvaluos' from namespace 'urn:m15.AvaluosPortType' was ignored. The combination of style=rpc with use=literal is not supported.
1
1954
by: garraxxi | last post by:
Necesito verificar un tableadapter ha tenido cambios desde la ultima actualización contra la base de datos; me explico... quiero imitar el funcionamiento de excel, word y otros prograamas ofimáticos en los cuales, cuando quiero cerrar la aplicación el programam preguanta si deseo guardar cambios existentes, si los hubo, si no, cierra normalmente la aplicación... quiero hacer esto pero a nivel de uns olo formulario... no se si me explico...
0
9687
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10252
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10231
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10027
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7565
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6805
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5463
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
4141
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
2938
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.