09 2009 档案
摘要:----系统表----------------------------------------------------------------------------------------------------虽然使用系统存储过程、系统函数与信息架构视图已经可以为我们提供了相当丰富的元数据信息,但是对于某些特殊的元数据信息,我们仍然需要直接对系统表进行查询。因为SQL Server 将所有数据...
阅读全文
摘要:create table #temp(Name varchar(50))--创建临时表 insert #temp select name from syscolumns where id=(select max(id) from sysobjects where xtype='u' and name='T_Staff')select * from #temp declare @MyCursor C...
阅读全文