MySQL Forums
Forum List  »  MyISAM

paralel updates
Posted by: passer passer
Date: October 18, 2010 05:08AM

hi.
i need your help.
why this two sql who star together are updates same record.
table engine is myisam. client work in autocommit mode.

update table set status=80925,ch_status=now() where
ins_time<now() and
now()-ch_status>300 and
status!=1
order by ch_status limit 1


update table set status=500,ch_status=now() where
ins_time<now() and
now()-ch_status>300 and
status!=1
order by ch_status limit 1

i think it is imposibl before. because updating ch_status must prevent it.



thank in advance for answers.

Options: ReplyQuote


Subject
Views
Written By
Posted
paralel updates
2884
October 18, 2010 05:08AM
1437
October 19, 2010 10:18PM
1621
October 20, 2010 02:43AM


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.