zoukankan      html  css  js  c++  java
  • select for update [nowait]

    The NOWAIT and WAIT clauses let you tell the database how to proceed if the SELECT statement attempts to lock a row that is locked by another user.

    • Specify NOWAIT to return control to you immediately if a lock exists.

    • Specify WAIT to instruct the database to wait integer seconds for the row to become available and then return control to you.

    If you specify neither WAIT nor NOWAIT, then the database waits until the row is available and then returns the results of the SELECTstatement.

    解除 lock 的方法:commit or rollback

    可能出现的错误:ORA-00054: 资源正忙,但指定已NOWAIT 方式获取资源,或者超时失效

  • 相关阅读:
    js函数对象
    jQuery选择器
    js数组
    js知识点
    正则|数字|Format
    Ajax基础
    MVC 打包压缩
    JS(正则|JSON)
    CLR via C#
    Exists/In/Any/All/Contains操作符
  • 原文地址:https://www.cnblogs.com/zno2/p/4754534.html
Copyright © 2011-2022 走看看