[PHP-DB] Ooops!!!

2007-04-04 Thread MIGUEL ANTONIO GUIRAO AGUILERA


Hi pals,

Is there a way to recover deleted records in a MySQL table?
I just did a wrong query with the wrong constrains and deleted a hardware 
inventory, I have a backup, but it is last week dated!!

Best regards!


MIGUEL GUIRAO AGUILERA
Logistica R8 - Telcel
Tel: (999) 960.7994


Este mensaje es exclusivamente para el uso de la persona o entidad a quien esta 
dirigido; contiene informacion estrictamente confidencial y legalmente 
protegida, cuya divulgacion es sancionada por la ley. Si el lector de este 
mensaje no es a quien esta dirigido, ni se trata del empleado o agente 
responsable de esta informacion, se le notifica por medio del presente, que su 
reproduccion y distribucion, esta estrictamente prohibida. Si Usted recibio 
este comunicado por error, favor de notificarlo inmediatamente al remitente y 
destruir el mensaje. Todas las opiniones contenidas en este mail son propias 
del autor del mensaje y no necesariamente coinciden con las de Radiomovil 
Dipsa, S.A. de C.V. o alguna de sus empresas controladas, controladoras, 
afiliadas y subsidiarias. Este mensaje intencionalmente no contiene acentos.

This message is for the sole use of the person or entity to whom it is being 
sent.  Therefore, it contains strictly confidential and legally protected 
material whose disclosure is subject to penalty by law.  If the person reading 
this message is not the one to whom it is being sent and/or is not an employee 
or the responsible agent for this information, this person is herein notified 
that any unauthorized dissemination, distribution or copying of the materials 
included in this facsimile is strictly prohibited.  If you received this 
document by mistake please notify  immediately to the subscriber and destroy 
the message. Any opinions contained in this e-mail are those of the author of 
the message and do not necessarily coincide with those of Radiomovil Dipsa, 
S.A. de C.V. or any of its control, controlled, affiliates and subsidiaries 
companies. No part of this message or attachments may be used or reproduced in 
any manner whatsoever.

-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP-DB] Ooops!!!

2007-04-04 Thread Emmanuel Job
the binary logs should be logging all the events that have happened
since the last backup. You do however have to hope that your server was
configured to use these logs.

http://dev.mysql.com/doc/refman/5.0/en/binary-log.html

-Original Message-
From: MIGUEL ANTONIO GUIRAO AGUILERA
[mailto:[EMAIL PROTECTED]
Sent: Wednesday, April 04, 2007 3:20 PM
To: php-db@lists.php.net
Subject: [PHP-DB] Ooops!!!




Hi pals,

Is there a way to recover deleted records in a MySQL table?
I just did a wrong query with the wrong constrains and deleted a
hardware inventory, I have a backup, but it is last week dated!!

Best regards!


MIGUEL GUIRAO AGUILERA
Logistica R8 - Telcel
Tel: (999) 960.7994


Este mensaje es exclusivamente para el uso de la persona o entidad a
quien esta dirigido; contiene informacion estrictamente confidencial y
legalmente protegida, cuya divulgacion es sancionada por la ley. Si el
lector de este mensaje no es a quien esta dirigido, ni se trata del
empleado o agente responsable de esta informacion, se le notifica por
medio del presente, que su reproduccion y distribucion, esta
estrictamente prohibida. Si Usted recibio este comunicado por error,
favor de notificarlo inmediatamente al remitente y destruir el mensaje.
Todas las opiniones contenidas en este mail son propias del autor del
mensaje y no necesariamente coinciden con las de Radiomovil Dipsa, S.A.
de C.V. o alguna de sus empresas controladas, controladoras, afiliadas y
subsidiarias. Este mensaje intencionalmente no contiene acentos.

This message is for the sole use of the person or entity to whom it is
being sent.  Therefore, it contains strictly confidential and legally
protected material whose disclosure is subject to penalty by law.  If
the person reading this message is not the one to whom it is being sent
and/or is not an employee or the responsible agent for this information,
this person is herein notified that any unauthorized dissemination,
distribution or copying of the materials included in this facsimile is
strictly prohibited.  If you received this document by mistake please
notify  immediately to the subscriber and destroy the message. Any
opinions contained in this e-mail are those of the author of the message
and do not necessarily coincide with those of Radiomovil Dipsa, S.A. de
C.V. or any of its control, controlled, affiliates and subsidiaries
companies. No part of this message or attachments may be used or
reproduced in any manner whatsoever.

--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP-DB] Ooops- i need it in mysql -i forgot to say

2002-03-11 Thread Michael Plies

Ooops- i need it in mysql -i forgot to say

Michael Plies wrote:

 hy,

 maybe im blind about this problem:
 thats a row of my table(sql follows at the endof  that mail) named
 immo_kat

 kat_id - immo_id  - cr_uid  - tstamp
 -- --- -- --
 ...
 35  -   318- 1- 1015874898
 34  -   318- 1-  0
 ...
 now  i like to get all immo_id's which have the same kat_id's like the
 rows with the immo_id 318. With one query
 means a join between two selects -
 I.
 SELECT kat_id
 FROM immo_kat
 where immo_id = 318

 an with the result :
 II.
 SELECT immo_id
 FROM immo_kat
 where kat_id = '1' OR kat_id = '35' OR kat_id = '34'
 Group by immo_id

 I'm sorry - sound really easy - but maybe its to late
 I would be very glad if someone can help me

 heres the sql if needed

 #
 # Tabellenstruktur für Tabelle `immo_kat`
 #

 CREATE TABLE immo_kat (
   kat_id int(11) NOT NULL default '0',
   immo_id int(11) NOT NULL default '0',
   cr_uid int(11) NOT NULL default '0',
   tstamp int(11) NOT NULL default '0',
   KEY kat_id (kat_id)
 ) TYPE=MyISAM;

 #
 # Daten für Tabelle `immo_kat`
 #

 INSERT INTO immo_kat (kat_id, immo_id, cr_uid, tstamp) VALUES
 (1,318,1,'');
 INSERT INTO immo_kat (kat_id, immo_id, cr_uid, tstamp) VALUES
 (1,277,1,'');
 INSERT INTO immo_kat (kat_id, immo_id, cr_uid, tstamp) VALUES
 (35,318,1,'');
 INSERT INTO immo_kat (kat_id, immo_id, cr_uid, tstamp) VALUES
 (34,277,1,'');
 INSERT INTO immo_kat (kat_id, immo_id, cr_uid, tstamp) VALUES
 (34,318,1,'');
 INSERT INTO immo_kat (kat_id, immo_id, cr_uid, tstamp) VALUES
 (36,315,1,1015874898);
 INSERT INTO immo_kat (kat_id, immo_id, cr_uid, tstamp) VALUES
 (34,315,1,1015874898);
 INSERT INTO immo_kat (kat_id, immo_id, cr_uid, tstamp) VALUES
 (1,299,1,1015876885);
 INSERT INTO immo_kat (kat_id, immo_id, cr_uid, tstamp) VALUES
 (34,311,1,1015876881);
 INSERT INTO immo_kat (kat_id, immo_id, cr_uid, tstamp) VALUES
 (36,313,1,1015876875);
 INSERT INTO immo_kat (kat_id, immo_id, cr_uid, tstamp) VALUES
 (34,327,1,1015875896);
 INSERT INTO immo_kat (kat_id, immo_id, cr_uid, tstamp) VALUES
 (1,289,1,1015876892);
 INSERT INTO immo_kat (kat_id, immo_id, cr_uid, tstamp) VALUES
 (34,289,1,1015876892);
 INSERT INTO immo_kat (kat_id, immo_id, cr_uid, tstamp) VALUES
 (36,289,1,1015876892);
 INSERT INTO immo_kat (kat_id, immo_id, cr_uid, tstamp) VALUES
 (35,298,1,1015876904);


-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php