摘要: using System;using System.Collections.Generic;using System.Linq;using System.Text;// 用基类实例化namespace ConsoleApplication21{ class Program { public abstract class A { public virtual void C() { Console.W... 阅读全文
posted @ 2009-06-24 23:22 Ry5 阅读(315) 评论(0) 推荐(0) 编辑
摘要: 别人的好东西 收藏了 听好玩的有1-16的数字在SQL中输出 输出的样式是1 12 11 10 2 13 16 9 3 14 15 8 4 5 6 7 --================================================ --绕圈的SQL算法(感觉很笨,不知道有没有更好的算法) --作者:冷箫轻笛 --日期:2008-02-21 --执行方式(参数必须为整数的平方,... 阅读全文
posted @ 2009-06-24 23:18 Ry5 阅读(825) 评论(1) 推荐(0) 编辑
摘要: SET SCHEMA = HR;CREATE PROCEDURE HR.SPGETCLOTHES ( IN IEMPCODE VARCHAR(20), IN IGIVETYPE INTEGER, IN ICLOTHESTYPE INTEGER, OUT FLAG VARCHAR(20), OUT OUTERRNO INTEGER, OUT OUTERRMSG VARCHAR(255) ) SPEC... 阅读全文
posted @ 2009-06-24 23:17 Ry5 阅读(266) 评论(0) 推荐(0) 编辑
摘要: DB2版本(嵌套版本) select * from hr.aaaa twhere name in (select name from hr.aaaa where id = t.id order by name fetch first 3 row only)DB2版本(函数版本) select id,name ,row_number() over(partition by id order by n... 阅读全文
posted @ 2009-06-24 23:14 Ry5 阅读(853) 评论(0) 推荐(0) 编辑
摘要: #region Copyright 2009/** Created:2009.06.12* Description:* Last Modified: 2009.06.12*RemarK序列化待实现 引入trinet.dll Bug休眠* Version: 2.0*/#endregionusing System;using System.Collections.Generic;using Syste... 阅读全文
posted @ 2009-06-24 23:12 Ry5 阅读(247) 评论(0) 推荐(0) 编辑