随笔分类 -  Sql Server

摘要:逻辑查询处理的各个阶段sqlserver select 执行顺序(5) select (5-2) distinct(5-3) top (<top_specification>)(5-1)<select_list>(1) from(1-j)<left_table> <join_type>join <right_table> on <on_predicate> |(1-a)<left_table> <apply_type> apply <right_table_experssion> as 阅读全文
posted @ 2011-08-12 00:13 Sam.山子 阅读(676) 评论(1) 推荐(0)
摘要:逻辑查询处理的各个阶段sqlserver select 执行顺序(5) select (5-2) distinct(5-3) top (<top_specification>)(5-1)<select_list>(1) from(1-j)<left_table> <join_type>join <right_table> on <on_predicate> |(1-a)<left_table> <apply_type> apply <right_table_experssion> as 阅读全文
posted @ 2011-08-12 00:11 Sam.山子 阅读(883) 评论(0) 推荐(1)
摘要:sqlserver(05)中一些函数的使用说明:一、时间函数:DateAdd([year、Quarter、month、day],number,date)功能说明:用于特定的时间范围内相加或相减参数说明:[year、Quarter、month、day]为操作的基准单位,年,季度,月份,日...number:操作数,正为加,负为减如:DataAdd(year,10,getdate()):返回当前时间的10年后的年份DataAdd(month,-2,getdate()):返回当前时间的2个月前的月份datename([year、Quarter、month、day],date)功能说明:获取特定时间的 阅读全文
posted @ 2011-06-25 23:03 Sam.山子 阅读(580) 评论(1) 推荐(1)