![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
SQL
文章平均质量分 75
samue86
这个作者很懒,什么都没留下…
展开
-
获取SQL Server数据库里表占用容量大小
SQL Server数据库中可以储存很多的数据,但是SQL Server数据库的内存是有一定的限制,而且达到一定的量就会对SQL Server数据库的操作产生影响,SQL Server数据库中表也是占据一定的容量的,下面就教给大家获取SQL Server数据库里表占用容量大小的方法。 其实只要使用系统内置的存储过程sp_spaceused就可以得到表的相关信息 如:sp_spaceus转载 2011-10-14 16:09:04 · 464 阅读 · 0 评论 -
SQL行列互转
--行列互转 /****************************************************************************************************************************************************** 以学生成绩为例子,比较形象易懂 整理人:中国风(Roy) 日期:2008.06转载 2013-03-04 10:55:22 · 283 阅读 · 0 评论 -
练习列转行
if not object_id('Class') is null drop table Class Go Create table Class([Student] nvarchar(2),[Course] nvarchar(2),[Score] int) Insert Class select N'张三',N'语文',78 union all select N'张原创 2013-03-04 15:19:23 · 407 阅读 · 1 评论 -
SQL行列转换2
--生产测试数据 if not object_id('Class') is null drop table Class Go Create table Class([Student] nvarchar(2),[数学] int,[物理] int,[英语] int,[语文] int) Insert Class select N'李四',77,85,65,65 union all selec转载 2013-03-04 10:57:56 · 326 阅读 · 0 评论