上一页 1 ··· 4 5 6 7 8 9 10 11 12 ··· 17 下一页
摘要: 警告:因为还没有对数据进行分组,所以在WHERE子句不能使用聚合,例如 不能使用 WHERE, orderdate=MAX(orderdate). 也不能引用SELECT 列表中创建的别名,因为 SELECT列表这是还未被处理。HAVING筛选器是唯一用足分组数据的筛选器; 阅读全文
posted @ 2015-01-11 22:12 ICupid 阅读(112) 评论(0) 推荐(0) 编辑
摘要: /*-- 逻辑查询处理的步骤序号(5) SELECT (5-2)DISTINCT (5-2) TOP (top_specification) (5-1)(1) FROM (1-J) JOIN ON |(1-A) APPLY AS |(1-P) PIVOT(... 阅读全文
posted @ 2015-01-11 14:53 ICupid 阅读(129) 评论(0) 推荐(0) 编辑
摘要: function customstopPropagation(e){ var ev = e || window.event; if (ev.stopPropagation) { ev.stopPropagation(); $(document).o... 阅读全文
posted @ 2015-01-08 14:45 ICupid 阅读(429) 评论(0) 推荐(0) 编辑
摘要: DateTime time=DateTime.Now;//存储过程中用一个@addTime DateTime --接收DateTime 类型接收 阅读全文
posted @ 2014-12-30 14:29 ICupid 阅读(498) 评论(0) 推荐(0) 编辑
摘要: SET STATISTICS PROFILE ONSET STATISTICS IO ONSET STATISTICS TIME ONSELECT * FROM userinfo WHERE Name IS NOT NULL AND Name = '刘'SEL... 阅读全文
posted @ 2014-11-26 15:48 ICupid 阅读(229) 评论(0) 推荐(0) 编辑
摘要: select length(f3) - length(replace(f3, 'a','')) from t1简单的,如果,要统计 good 出现的次数,改成select (length(f3) - length(replace(f3, 'good ',''))) / length('good')... 阅读全文
posted @ 2014-11-25 10:41 ICupid 阅读(537) 评论(0) 推荐(0) 编辑
摘要: //封装的方法//读取文件的值,放入集合中 public static IEnumerable ReadLines(string fileName) { using (TextReader reader=File.OpenText(fileName)) { ... 阅读全文
posted @ 2014-11-07 17:42 ICupid 阅读(329) 评论(0) 推荐(0) 编辑
摘要: --DROP TABLE T_UserInfo------------------------------------------------------建测试表CREATE TABLE T_UserInfo( Userid varchar(20), UserName varchar(20... 阅读全文
posted @ 2014-11-04 16:18 ICupid 阅读(136) 评论(0) 推荐(0) 编辑
摘要: //定义一个枚举 public enum Colors { Red, Green, Blue, Yellow }; //根据key找value string name = Enum.GetName(typeof(Colors), 3);//根据value找key int aa = Colors.Y... 阅读全文
posted @ 2014-11-03 09:40 ICupid 阅读(158) 评论(0) 推荐(0) 编辑
摘要: class Program { static void Main(string[] args) { SorAndShowFiles("Sorted by name", delegate(FileInfo f1, FileInfo f2) { ... 阅读全文
posted @ 2014-10-27 11:26 ICupid 阅读(177) 评论(0) 推荐(0) 编辑
上一页 1 ··· 4 5 6 7 8 9 10 11 12 ··· 17 下一页