Hi Yong,

That has to be FOR UPDATE SKIP LOCKED.
There is some stuff about it on the Ixora web site.

@   Regards,
@   Steve Adams
@   http://www.ixora.com.au/
@   http://www.christianity.net.au/


-----Original Message-----
Sent: Thursday, 15 February 2001 2:31
To: Multiple recipients of list ORACLE-L


Hi, Riyaj,

Could you post your screen shot that shows select * from t1 skip locked? What
version of Oracle are you using? Mine is 8.1.6 Enterprise Ed:

SQL> select * from test skip locked;
select * from test skip locked
                        *
ERROR at line 1:
ORA-00933: SQL command not properly ended


SQL> select * from test skip lock;
select * from test skip lock
                        *
ERROR at line 1:
ORA-00933: SQL command not properly ended

SQL> desc test
 Name                                      Null?    Type
 ----------------------------------------- -------- --------
 A                                                  NUMBER
 B                                                  ROWID
 D                                                  NUMBER

Yong Huang
[EMAIL PROTECTED]

you wrote:

If you want to show only rows that are locked then you could use this
undocumented feature: 'select * from t1 skip locked'. This will skip all the
rows that have been locked.

Thanks
Riyaj "Re-yas" Shamsudeen

-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.com
-- 
Author: Steve Adams
  INET: [EMAIL PROTECTED]

Fat City Network Services    -- (858) 538-5051  FAX: (858) 538-5051
San Diego, California        -- Public Internet access / Mailing Lists
--------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message
to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from).  You may
also send the HELP command for other information (like subscribing).

Reply via email to