
sql
孤舟小梦
这个作者很懒,什么都没留下…
展开
-
Excel数据导入到Sql Server 2005
一、如果导入时报如下错误SQL Server 阻止了对组件 'Ad Hoc Distributed Queries' 的STATEMENT'OpenRowset/OpenDatasource' 的访问,因为此组件已作为此服务器安全配置的一部分而被关闭。系统管理员可以通过使用 sp_configure 启用 'Ad Hoc Distributed Queries'。有关启用 'Ad Hoc Di转载 2013-03-27 17:02:08 · 550 阅读 · 0 评论 -
group by如何保留count为0的结果?
我们知道,使用select count(*) from table1 where condition>100 group by ID时,结果中不会保留count为0的结果,如果我们需要保留count为0的结果怎么办? 不保留0的结果:select GoodsTypeID,count(*) as Counts from tb_GoodsInfowhere GoodsPrice>100原创 2013-05-14 16:51:43 · 2156 阅读 · 0 评论