if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[ComClass]') and OBJECTPROPERTY(id, N'IsUserTable') = 1)
drop Table [dbo].[ComClass]
GO
SET QUOTED_IDENTIFIER ON
GO
SET ANSI_NULLS ON
GO
Create Table [dbo].[ComClass] (
	[ComClassID] [int] identity(1,1) NOT NULL,
	[ComClassLel] [int] NULL,
	[comClassName] [varchar] (30) NOT NULL,
	[comclassupLvl] [int] NULL,
	[unitid] [varchar] (30) NULL,
	CONSTRAINT [PK_ComClass] PRIMARY KEY  NONCLUSTERED
	(
		[ComClassID]
	) ON [PRIMARY] 
) ON [PRIMARY] 
GO
SET QUOTED_IDENTIFIER OFF
GO
SET ANSI_NULLS OFF
GO


SELECT * FROM THSCODE

alter table thscode add fhsjgtj varchar(60)
alter table taffix add comclassname varchar(50)