临时表的建立


create table #CountNum
(
 [id] [int] IDENTITY (1, 1) NOT NULL ,
 [succ] [int],
 [tt] [int],
 [area] [varchar] (20) COLLATE Chinese_PRC_CI_AS NULL ,
 CONSTRAINT [PK_#CountNum] PRIMARY KEY  CLUSTERED
 (
  [id]
 )  ON [PRIMARY]
)
---临时表

select * from #CountNum

insert into #CountNum  (succ,tt,area)  values('5','16','北京')

你可能感兴趣的:(临时表的建立)