Re: Informix Row Locking
Posted in 1998
P.Silva wrote:
>
> Does anyone know the equivalent syntax for informix 7.23 (fc4) for this:
>
> (Oracle 7)
> SELECT * FROM myTable WHERE myConds FOR UPDATE WITH NOWAIT>
> SELECT FOR UPDATE locks rows on Oracle. I know this isn't possible in MS SQL
> Server. Does Informix supports it?
> Thanks in advance...
> P.Silva
Try:
SET LOCK MODE TO NOT WAIT;
SELECT * FROM myTable WHERE myConds FOR UPDATE;
See also the manuals for discussion of transaction modes and isolation
levels to achieve the precise effect you want.
Informix can lock rows or pages, it's your choice with Online and rows
only with SE. Informix has always been able to lock rows, so far as I
know.
--
Peter Lancashire
Information Systems Specialist, Bayer plc
Eastern Way, Bury St Edmunds, Suffolk, IP32 7AH, UK
Tel: +44-1635-562258, Fax: +44-1635-562281
---
If all else fails, read the instructions and the release notes.
Join Infuse, the UK Informix User Group at http://www.infuse.org.uk/
---