SqlServer 杂记 不断补充中
摘要:1.OPTION (MAXRECURSION 25) :最大允许递归的次数。默认最大CTE递归只有100次,而你要求插入10年的数据,需要递归3000多次,所以要使用option (MAXRECURSION 4000)2.select identity(int,1,1) as id into #temp,注意identity用法,只能用在有into的select语句中3.一个叫department的表,里面只有一个字段name,一共有4条纪录,分别是a,b,c,d,对应四个球对,现在四个球对进行比赛,用一条sql语句显示所有可能的比赛组合答:create table #department(t
阅读全文
posted @ 2014-01-20 22:55
浙公网安备 33010602011771号