删除临时表并且插入数据

if object_id('tempdb..#temp') is not null drop table #temp
go
create table #temp
(
id int,code nvarchar(6),name nvarchar(50),provinceId nvarchar(6)
)
insert into #temp select id,code,name,provinceid from City1

select * from #temp

posted on 2009-03-30 16:00  .net小鸟  阅读(809)  评论(3编辑  收藏  举报