日期:2014-05-16  浏览次数:20495 次

事务隔离级别
测试表脚本:

SQL?SERVER

CREATE?TABLE?
[ Customer ](

????[
CustID ]?[ int ]? NOT?NULL ,

????[
Fname ]?[ nvarchar ]( 20 ),

????[
Lname ]?[ nvarchar ]( 20 ),

????[
Address ]?[ nvarchar ]( 50 ),

????[
City ]?[ nvarchar ]( 20 ),

????[
State ]?[ nchar ]( 2 )?DEFAULT?( 'CA' ),

????[
Zip ]?[ nchar ]( 5 )? NOT?NULL ,

????[
Phone ]?[ nchar ]( 10 )

)

insert?into?customer?values ( 1 ,? 'Gary' ,? 'Mckee' ,? '111?Main' ,? 'Palm?Springs' ,? 'CA' ,? 94312 ,? 7605551212 )

insert?into?customer?values ( 2 ,? 'Tom' ,? 'Smith' ,? '609?Geogia' ,? 'Fresno'?'JP' ,? 33045 ,?