Re: Record Locking on Linked MySQL Tables
Well, I think I've resolved the problem now. It turns out that all of my timestamps were still null, and I guess that a record with a null timestamp cannot be edited...
Anyway, now I am trying to create a script to automatically set all of the timestamps in every table to the current time, but it always stops after the first line, without an error. The script looks like the following:
UPDATE `tablename1` SET `time_stamp`=now();
UPDATE `tablename2` SET `time_stamp`=now();
......
The query runs properly for the first table on the script every time, but then it never actually updates the second through last tables. It finishes without an error message, but something isn't working right. Is there something wrong with the way I wrote the script?
Subject
Views
Written By
Posted
5505
May 18, 2005 01:34PM
Re: Record Locking on Linked MySQL Tables
2347
May 18, 2005 02:29PM
3033
August 30, 2005 07:25AM
2383
September 22, 2005 09:46AM
2692
October 10, 2005 06:25AM
2339
October 17, 2005 09:15AM
2323
December 04, 2005 11:17AM
2185
December 05, 2005 07:47AM
2165
January 05, 2006 04:13AM
2775
February 02, 2006 11:12AM
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.