if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[db_case_user]') and OBJECTPROPERTY(id, N'IsUserTable') = 1) drop table [dbo].[db_case_user] GO
CREATE TABLE [dbo].[db_case_user] ( [id] [int] IDENTITY (1, 1) NOT NULL , [name] [varchar] (100) COLLATE Chinese_PRC_CI_AS NULL , [lock] [bit] NULL ) ON [PRIMARY] GO
insert into db_case_user (name, lock) values ('张三', 0) insert into db_case_user (name, lock) values ('李四', 1) insert into db_case_user (name, lock) values ('王五', 0) insert into db_case_user (name, lock) values ('赵六', 0)