标签:
exec sp_configure ‘show advanced option‘,1
reconfigure
go
exec sp_configure ‘xp_cmdshell‘,1
reconfigure
go
select NewName=left(trim(name),1) from student
select * into #A from student 将student内容插入到临时表#A
select stuent.stuName,stuent.stuID,book.title,book.BID,borrow.T_time from student,book,borrow where student.stuID=borrow.stuID,book.BID=borrow.BID,borrow.T_time between ‘2007-12-15‘ and ‘2008-1-8‘
update stu
set sCount =
(select Temp.value from (select sCode, value = 20 * ROW_NUMBER() over (order by sCode ) from stu) as Temp where Temp.scode = stu.sCode )
CREATE CLUSTERED INDEX IX_Id ON Person(Id)
CREATE NONCLUSTERED INDEX IX_Name ON Person(Name) --创建非聚集索引
标签:
原文地址:http://www.cnblogs.com/justhappy/p/4808942.html