1 如何锁一个表的某一行 SET TRANSACTION ISOLATION LEVEL READ UNCOMMITTED SELECT * FROM table ROWLOCK WHERE id = 1 2 锁定数据库的一个表 SELECT * FROM table WITH (HOLDLOCK) 加锁语句: sybase: update 表 set col1=col1 where 1=0 ; MSSQL: select col1 from 表 (tablockx) where 1=0 ; oracle: LOCK TABLE 表 IN EXCLUSIVE MODE ; 加锁后其它人不...
读出文本所有内容Function ReadTxt(pathway)
Dim fso,myfile,i'Dim ReadLine(10)Set fso=CreateObject("Scripting.FileSystemObject")If fso.FileExists(pathway) Then Set myfile=fso.OpenTextFile(pathway,1,False)ElseWScript.Echo "该文档不存在"End Ifi=0If Not myfile.AtEndOfStream Then While Not myfile.AtEndOfLine ...