📄 188.htm
字号:
<!-- saved from url=(0022)http://internet.e-mail -->
<html>
<head>
<title>锁定MSSQL记录的方法。 </title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link rel="stylesheet" href="inc.css">
</head>
<body bgcolor="#FFFFFF" text="#000000" link="#000000" vlink="195434" alink="195434">
<table width="621" border="0" cellspacing="0" cellpadding="0" align="center">
<tr>
<td width="621"><a href="http://www.CoDelphi.com"><img src="images/logo.gif" border="0" width="153" height="60"><img src="images/bigbanner.gif" border="0" width="468" height="60"></a></td>
</tr>
</table><br>
<br>
<table width="621" border="0" cellspacing="0" cellpadding="0" align="center">
<tr>
<td align="left" valign="top" class="font9" height="155">
<div align="center" class="btitle">锁定MSSQL记录的方法。 <br>
<br>
</div>
<div align="center"><strong>CoDelphi.com </strong></div>
<b><br>
摘 要</b>:锁定MSSQL记录的方法。 <br>
<b> 关键字</b>:记录 锁定 MSSQL SQL <br>
<b> 类 别</b>:数据库
<hr size="1" width="100%">
<span class="content">    使用一些软锁机制不是最好的方法,因为它使用反映当前锁定状态的记录中的段来提供锁定机制。但如果程序释放记录失败,记录就会永远被锁定。<br><br>    其它方法包括:<br><br>    使用oracle是,考虑下面的语句:<br><br>Select * from annytable where id=5<br>for update no wait<br><br>    如果查询执行时另一个用户已锁定了记录,它就会失败,给出信息指出table被锁定。<br><br>    如果你按上述方法去做(用table的域去锁定),你就需要加入解锁用的admin版本。<br><br>    自变量向高处锁,即锁定关系记录,以取得对其所有记录的锁。<br></span>
<table border="0" cellspacing="0" cellpadding="1" class="font9" align="center" width="100%">
<tr align="left" valign="middle" bgcolor="195434">
<td height="1"></td>
</tr>
</table>
</td>
</tr>
<tr>
<td bgcolor="#C9C9C6" height="2"></td>
</tr>
</table>
<div align="center"><br>
中文开发在线<a href="http://www.codelphi.com" target="_blank">www.codelphi.com</a>授权使用。
</div>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -