如何在plsql中为anonoymous块或查询设置超时?
发布时间:2020-12-12 16:26:31 所属栏目:百科 来源:网络整理
导读:我知道您可以设置用户 profiles或设置查询的常规超时. 但我希望将超时设置为过程内的特定查询并捕获异常,例如: begin update tbl set col = v_val; --Unlimited time delete from tbl where id = 20; --Unlimited time begin delete from tbl; -- I want th
我知道您可以设置用户
profiles或设置查询的常规超时.
但我希望将超时设置为过程内的特定查询并捕获异常,例如: begin update tbl set col = v_val; --Unlimited time delete from tbl where id = 20; --Unlimited time begin delete from tbl; -- I want this to have a limited time to perform exception when (timeout???) then --code; end; end; 这可能吗?是否有任何超时异常我可以抓住?每个块还是查询?没有找到关于这个主题的太多信息. 不,你不能在pl / sql中设置超时.您可以使用宿主语言来嵌入sql和pl / sql.(编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |