sql视图:http://www.cnblogs.com/CareySon/archive/2011/12/07/2279522.html
sql索引:http://www.cnblogs.com/AK2012/archive/2013/01/04/2844283.html
sql复合索引:http://www.cnblogs.com/worfdream/archive/2010/05/21/1740752.html
sql取随机数据:http://www.cnblogs.com/lyhabc/p/3826872.html
sql临时表:http://www.cnblogs.com/jeffwongishandsome/archive/2009/08/05/1526466.html
是否存在表:http://www.cnblogs.com/yugen/archive/2010/07/25/1784749.html
exec sp_executesql @sql,N'@count int out',@count out
group by后把没有group的字段拼接成一行:https://www.cnblogs.com/lyd2016/p/7898318.html
sql日期差:select Convert(decimal(18,2),(datediff(MINUTE,'2012/8/1 15:29:18','2012/8/3')/60.0)) as daysum