摘要: 1 //自定义泛型委托对象 2 public delegate void PrintT(T t); 3 public static void TEach(this List ls,PrintT pt) 4 { 5 6 foreach (T t in ls) 7 { 8 ... 阅读全文
posted @ 2018-08-13 20:00 往事随风_go 阅读(231) 评论(0) 推荐(0) 编辑
摘要: 1 /**************************** 2 说明:游标使用 3 时间:07/07/15 4 ******************************/ 5 use student_15 6 go 7 declare student_cur cursor 8 9 for select * from s... 阅读全文
posted @ 2018-08-13 19:00 往事随风_go 阅读(228) 评论(0) 推荐(0) 编辑
摘要: 背景颜色1. 颜色背景<style type="text/css">body { font-size: 16px;">h1 { font-size: 16px;">h2 { font-size: 16px;">p { font-size: 16px;"></style>2. 图片做为背景(1)bod 阅读全文
posted @ 2018-08-13 18:58 往事随风_go 阅读(210) 评论(0) 推荐(0) 编辑
摘要: c:\mysql -u root -p 进入mysql输入密码 mysql>show databases; 显示数据库 mysql>use mysql; 打开mysql mysql>show tables;看多少表 mysql>desc user; 看字段 mysql>select user,pas 阅读全文
posted @ 2018-08-13 18:55 往事随风_go 阅读(87) 评论(0) 推荐(0) 编辑
摘要: 企业管理器了, 》 编辑该数据库的注册属性 》“常规”属性页下面--》“显示系统数据库和系统对象”的选项去掉 阅读全文
posted @ 2018-08-13 18:54 往事随风_go 阅读(941) 评论(0) 推荐(0) 编辑
摘要: 1,PHP目录下将php.ini-dist文件拷贝一份改名为php.ini2,打开php.ini3,修改;extension=php_mysql.dll为extension=php_mysql.dll4,修改extension_dir = "./"改为extension_dir =C:\PHPSer 阅读全文
posted @ 2018-08-13 18:54 往事随风_go 阅读(83) 评论(0) 推荐(0) 编辑
摘要: 昨天在用powerdesigner画的一个导入ORACLE中.发现都带了双引号, 当时没在意,以为是分隔符.那想后要在ORACLE查询表是一定要输入双引号才能查询.. 后来才知道而这在oracle 中是被认为名字的一部分的.找了一下,才将这个双引号去掉.菜单:Database->Edit curre 阅读全文
posted @ 2018-08-13 18:52 往事随风_go 阅读(193) 评论(0) 推荐(0) 编辑
摘要: 本文主要介绍PowerDesigner概念数据模型以及实体、属性创建。一、新建概念数据模型1)选择File-->New,弹出如图所示对话框,选择CDM模型(即概念数据模型)建立模型。2)完成概念数据模型的创建。以下图示,对当前的工作空间进行简单介绍。(以后再更详细说明)3)选择新增的CDM模型,右击 阅读全文
posted @ 2018-08-13 18:51 往事随风_go 阅读(320) 评论(0) 推荐(0) 编辑
摘要: 1 在有些时候,可能需要直接执行SQL语句、存储过程等,但nhibernate并没有提供一种让我们执行SQL语句的方法,不过可以通过一些间接的方法来实现。 2 3 下面给出一个在nhibernate中执行SQL语句的方法ExecuteSQL。 4 public IList ExecuteSQL( string query ) { 5 IList result = new Arr... 阅读全文
posted @ 2018-08-13 18:50 往事随风_go 阅读(952) 评论(0) 推荐(0) 编辑
摘要: 1 /******************************************/ 2 /* 名称:权限管理 */ 3 /* 编写日期:2010.5.20 */ 4 /* 开发者:dangqinghua */ 5 /****************... 阅读全文
posted @ 2018-08-13 18:47 往事随风_go 阅读(518) 评论(0) 推荐(1) 编辑
摘要: jQuery 浏览器判断,jQuery提供了一个 jQuery.browser 方法 来判断浏览器 可用值: safari opera msie mozilla 例如:if($.browser.msie){ alert("Microsoft Internet Explorer")}if($.brow 阅读全文
posted @ 2018-08-13 18:46 往事随风_go 阅读(2188) 评论(0) 推荐(0) 编辑
摘要: SQLServer 提供了 25 种数据类型: ·Binary [(n)] ·Varbinary [(n)] ·Char [(n)] ·Varchar[(n)] ·Nchar[(n)] ·Nvarchar[(n)] ·Datetime ·Smalldatetime ·Decimal[(p[,s])] 阅读全文
posted @ 2018-08-13 18:45 往事随风_go 阅读(138) 评论(0) 推荐(0) 编辑
摘要: 1 1、非负整数:^\d+$ 2、正整数:^[0-9]*[1-9][0-9]*$ 3、非正整数:^((-\d+)|(0+))$ 4、负整数:^-[0-9]*[1-9][0-9]*$ 5、整数:^-?\d+$ 6、非负浮点数:^\d+(\.\d+)?$ 7、正浮点数:^((0-9)+\.[0-9]*[1-9][0-9]*)|([0-9]*[1-9][0-9]*\.[0-9]+)|([0-9]*[1... 阅读全文
posted @ 2018-08-13 18:43 往事随风_go 阅读(129) 评论(0) 推荐(0) 编辑
摘要: 1 // 2 /// 提取字符串中的数字字符串 3 /// 4 /// 5 /// 6 public static bool IsNumber(String str) 7 { 8 bool result = false; 9 for (int ... 阅读全文
posted @ 2018-08-13 18:42 往事随风_go 阅读(7227) 评论(0) 推荐(0) 编辑
摘要: 1 create database xuesheng 2 go 3 use xuesheng 4 go 5 /*学生表*/ 6 create table Student 7 ( 8 S# int identity(1,1) primary key, 9 Sname varchar(50) null, 10 Sage int not null... 阅读全文
posted @ 2018-08-13 18:41 往事随风_go 阅读(336) 评论(0) 推荐(0) 编辑
摘要: 1 判断数据库是否存在 2 ifexists(select*frommaster..sysdatabaseswherename=N’库名’) 3 print’exists’ 4 else 5 print’notexists’ 6 7 --------------- 8 --判断要创建的表名是否存在 9 ifexists(select*fromdbo.sysobjectswhe... 阅读全文
posted @ 2018-08-13 18:39 往事随风_go 阅读(5790) 评论(0) 推荐(0) 编辑
摘要: 1 A. 2 3 --SELECT TOP 15 * FROM Customer 4 -- WHERE CustomerID NOT IN(SELECT TOP (15*(2-1)) CustomerID FROM Customer 5 -- ORDER BY CustomerID) 6 -- ORDER BY CustomerID 7 8 ... 阅读全文
posted @ 2018-08-13 18:35 往事随风_go 阅读(116) 评论(0) 推荐(0) 编辑
摘要: 1 -----------------更新无锡医院名称 2 update Opt_DKI_Hospital set centerName =tmp.[医院名称] 3 from Opt_DKI_Hospital h 4 inner join [无锡医院] tmp on h.centerid =tmp.[医院代码] 5 ----------------更新南京医院名称 6 updat... 阅读全文
posted @ 2018-08-13 18:35 往事随风_go 阅读(463) 评论(0) 推荐(0) 编辑
摘要: 1 1.存储过程 2 3 ------------------------------------ 4 --用途:[综合查询]多条件查询/GBC查询 5 --时间:2011-2-14 8:18:31 6 --名称:dangqinghua 7 ------------------------------------ 8 ALTER PROC [dbo].[DKI_Gener... 阅读全文
posted @ 2018-08-13 18:34 往事随风_go 阅读(484) 评论(0) 推荐(0) 编辑
摘要: 1 ALTER proc [dbo].[Dki_GBC_DownloadHistory] 2 ( 3 @CMD varchar(20), 4 @ContactPersonID int=0, 5 @UserID int=0 ---用户 6 ) 7 as 8 if @CMD is null 9 begin 10 print N... 阅读全文
posted @ 2018-08-13 18:33 往事随风_go 阅读(826) 评论(0) 推荐(0) 编辑