rowid mystry [message #242312] |
Fri, 01 June 2007 09:58 |
kidoos
Messages: 11 Registered: June 2007
|
Junior Member |
|
|
update t1 set field1='d' where rowid =chartorowid('AASAEEFFAAS\')
upadte t1 set field1='d' where rowidtochar(rowid) = 'AASAEEFFAAS\'
which of these update statement will be faster .
and please explain why it is so ?
thanks
|
|
|
|
|
|
Re: rowid mystry [message #242348 is a reply to message #242341] |
Fri, 01 June 2007 11:14 |
|
Michel Cadot
Messages: 68718 Registered: March 2007 Location: Saint-Maur, France, https...
|
Senior Member Account Moderator |
|
|
It depends where do you get the 'AASAEEFFAAS\' value and if the related rows is locked or not.
If it is locked from the time you get its rowid to the time you update it, it is safe.
Otherwise, you'll likely have problems.
Regards
Michel
|
|
|