MySQL Forums
Forum List  »  Spanish

Re: Saber que registros fueron modificados
Posted by: Faustino Forcen
Date: August 26, 2006 12:08PM

antes del update haces

SELECT NOW()

justo después de
UPDATE tabla2 SET status=2, cuando=NOW() WHERE idtabla2=idtabla1;

haces un select

SELECT FROM tabla2 WHERE cuando >= el resultado del primer select.


el campo cuando es de tipo timestamp.



ff

Options: ReplyQuote


Subject
Views
Written By
Posted
Re: Saber que registros fueron modificados
3300
August 26, 2006 12:08PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.