SQL2005数据库中用语句的创建数据库和表(2)_SQL SERVER数据库_黑客防线网安服务器维护基地--Powered by WWW.RONGSEN.COM.CN

SQL数据库2005中用语句的创建数据库和表(2)

作者:黑客防线网安SQL维护基地 来源:黑客防线网安SQL维护基地 浏览次数:0

本篇关键词:SQL2005数据库
黑客防线网安网讯:   insert into teacher values('zhang','hubei')insert into teacher values('wang','hubei')insert into teacher values('li','hubei')...

   insert into teacher values('zhang','hubei')
insert into teacher values('wang','hubei')
insert into teacher values('li','hubei')
insert into teacher values('chen','hunan')
insert into teacher values('zhao','hunan')
insert into teacher values('tian','guangdong')
insert into teacher values('ma','guangdong')
insert into teacher values('chang','tianjin')
insert into teacher values('liang','beijing')

select * from teacher

select count(*),address from teacher group by address having address<>'hunan'
--按地址分组查询并用having字句筛选出地址不是‘hunan’的
EXEC sp_configure 'xp_cmdshell', 0
GO
-- 还原当前功能(xp_cmdshell)的配置信息为初始状态.
RECONFIGURE
GO
EXEC sp_configure 'show advanced options', 0
GO
-- 最后还原当前高级选项的配置信息为初始状态
RECONFIGURE
GO

    黑客防线网安服务器维护方案本篇连接:http://www.rongsen.com.cn/show-11733-1.html
网站维护教程更新时间:2012-03-21 03:33:37  【打印此页】  【关闭
我要申请本站N点 | 黑客防线官网 |  
专业服务器维护及网站维护手工安全搭建环境,网站安全加固服务。黑客防线网安服务器维护基地招商进行中!QQ:29769479

footer  footer  footer  footer