MSSQLServer
文章平均质量分 66
iteye_1020
这个作者很懒,什么都没留下…
展开
-
日期的一些杂七杂八的东西
---===hubin===--- 做这行的什么东西都要会,各种各样的数据库都要知道些. SQLServer2005 ===时间=== The following examples use the six SQL Server system functions that return current date and time to return the date, time,...原创 2010-10-12 13:57:32 · 110 阅读 · 0 评论 -
SQLServer2005日常操作
############################################################################### # 2010-10-13-[Wed]-12-15-19 # ------------------------- # # SQLServer 2005 # -------------- # In the ...原创 2010-10-13 12:07:08 · 99 阅读 · 0 评论 -
MS_SQLServer_2k5_Install
##################################################################### # MSSQLServer 2k5安装很简单, 心细些就可以了 # 记得ISS先安装好. # # 安装好后有以下服务 # ======MSSQLServer=========== # SQL Server (MSSQLSE...原创 2011-07-13 21:54:33 · 75 阅读 · 0 评论 -
日期格式
--看默认的格式是什么 select getdate() as colName colName ----------------------- 2011-01-07 09:59:03.730 (1 row(s) affected) --其他一些格式, 当然MSDN上统统都有 select CONVERT(varchar, getdate(), 120 ) 2011-01-...原创 2011-01-07 10:09:35 · 75 阅读 · 0 评论 -
NULL值的一些知识
SELECT count(base_uom) as 'my_column' , base_uom FROM schema.table group by base_uom order by 'my_column' 想对表schema.table里的base_uom字段做统计分析,就是想看看这字段里的某个值出现了几次, 由于这字段里有NULL值,统计的时候SQLServer是...原创 2011-01-10 12:43:59 · 243 阅读 · 0 评论 -
监视器的过滤设置和动态跑SQL
In SQLServer Profiler: TextData Not like [select TOP 20%] this will better ApplicationName like NULL This will dynamic run sql: --This is the profiler shows declare @p1 int set @p1=426 exec s...原创 2011-01-18 15:14:02 · 193 阅读 · 0 评论