打印本文 打印本文 关闭窗口 关闭窗口
整理了一些t-sql技巧
作者:武汉SEO闵涛  文章来源:敏韬网  点击数16761  更新时间:2007/11/14 13:12:55  文章录入:mintao  责任编辑:mintao

create table northwind.dbo.t_30(
id 
int primary key check(id between 21 and 30),name varchar(10))
go

--分区视图
create view v_t
as
select * from tempdb.dbo.t_10
union all
select * from pubs.dbo.t_20
union all
select * from northwind.dbo.t_30
go

--插入数据
insert v_t select 1 ,''''aa''''
union  all select 2 ,''''bb''''
union  all select 11,''''cc''''
union  all select 12,''''dd''''
union  all select 21,''''ee''''
union  all select 22,''''ff''''

--更新数据

 << 上一页  [11] [12] [13] [14] [15] [16] [17] [18] [19]  下一页

打印本文 打印本文 关闭窗口 关闭窗口