摘要: 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 阅读(234) 评论(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 阅读(234) 评论(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 阅读(217) 评论(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 阅读(91) 评论(0) 推荐(0)
摘要: 企业管理器了, 》 编辑该数据库的注册属性 》“常规”属性页下面--》“显示系统数据库和系统对象”的选项去掉 阅读全文
posted @ 2018-08-13 18:54 往事随风_go 阅读(980) 评论(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 阅读(92) 评论(0) 推荐(0)
摘要: 昨天在用powerdesigner画的一个导入ORACLE中.发现都带了双引号, 当时没在意,以为是分隔符.那想后要在ORACLE查询表是一定要输入双引号才能查询.. 后来才知道而这在oracle 中是被认为名字的一部分的.找了一下,才将这个双引号去掉.菜单:Database->Edit curre 阅读全文
posted @ 2018-08-13 18:52 往事随风_go 阅读(199) 评论(0) 推荐(0)
摘要: 本文主要介绍PowerDesigner概念数据模型以及实体、属性创建。一、新建概念数据模型1)选择File-->New,弹出如图所示对话框,选择CDM模型(即概念数据模型)建立模型。2)完成概念数据模型的创建。以下图示,对当前的工作空间进行简单介绍。(以后再更详细说明)3)选择新增的CDM模型,右击 阅读全文
posted @ 2018-08-13 18:51 往事随风_go 阅读(439) 评论(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 阅读(1054) 评论(0) 推荐(0)
摘要: 1 /******************************************/ 2 /* 名称:权限管理 */ 3 /* 编写日期:2010.5.20 */ 4 /* 开发者:dangqinghua */ 5 /****************... 阅读全文
posted @ 2018-08-13 18:47 往事随风_go 阅读(533) 评论(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 阅读(2208) 评论(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 阅读(148) 评论(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 阅读(135) 评论(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 阅读(7347) 评论(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 阅读(346) 评论(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 阅读(5817) 评论(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 阅读(471) 评论(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 阅读(120) 评论(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 阅读(499) 评论(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 阅读(837) 评论(0) 推荐(0)
摘要: 1 ------------------------------------ 2 --用途:员工管理 3 --时间:2011-2-24 8:18:31 4 ------------------------------------ 5 alter proc DKI_StaffManage 6 ( 7 @CMD varchar(20)='', 8 @staffcode... 阅读全文
posted @ 2018-08-13 18:32 往事随风_go 阅读(212) 评论(0) 推荐(0)
摘要: $("#03").click(function() { $("#03").show(speed); $("#03").css("cursor","pointer"); $(".tableBorder4").toggle(1000); }) 无标题文档 div里内容的显示隐藏特效 1.测试例子 2.测 阅读全文
posted @ 2018-08-13 18:31 往事随风_go 阅读(2870) 评论(0) 推荐(0)
摘要: 类别添加 名称: &nbsp 正在发送数据请求… 类别添加 名称: &nbsp 正在发送数据请求… 名称: &nbsp 正在发送数据请求… 名称: &nbsp 正在发送数据请求… <% dim strValue blnLogin = false; strValue = request.Form("t 阅读全文
posted @ 2018-08-13 18:29 往事随风_go 阅读(1241) 评论(0) 推荐(0)
摘要: 用户名: 邮箱: 个人资料: 阅读全文
posted @ 2018-08-13 18:27 往事随风_go 阅读(126) 评论(0) 推荐(0)
摘要: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/ TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.o 阅读全文
posted @ 2018-08-13 18:25 往事随风_go 阅读(253) 评论(0) 推荐(0)
摘要: <" CODEPAGE="936"%><!--#include file="conncon.asp"--><!--#include file="../ht/contain/configweb.asp"--><!--#include file="../ht/contain/sqlFun.asp"--> 阅读全文
posted @ 2018-08-13 18:24 往事随风_go 阅读(199) 评论(0) 推荐(0)
摘要: 1 public IList GetModelList(string tablename, string where) 2 { 3 IList list = null; 4 DataTable dataTable = new DataTable(); 5 string ... 阅读全文
posted @ 2018-08-13 18:23 往事随风_go 阅读(689) 评论(0) 推荐(0)
摘要: 1. DataTable dt = ds.Tables[0]; 2. DataTable dt = dao.FillTables("GetOptions_DKI_City_HCPName", sqlparmeter); ds.Tables.Add(dt); 阅读全文
posted @ 2018-08-13 18:22 往事随风_go 阅读(5511) 评论(0) 推荐(0)
摘要: 1 select nc.Class_Name,hn.home_news_id,hn.hemo_id,hn.hemo_Date, 2 hn.hemo_title,hemo_order from Hemo_News as hn 3 inner join NewsClass as nc on hn.hom 阅读全文
posted @ 2018-08-13 18:20 往事随风_go 阅读(356) 评论(0) 推荐(0)
摘要: 1 string strSql = "select samlid,"; 2 strSql = strSql + "case bagclass "; 3 strSql = strSql + " when 1 then '小学' "; 4 strSql = strSql + " when 2 th... 阅读全文
posted @ 2018-08-13 18:20 往事随风_go 阅读(133) 评论(0) 推荐(0)
摘要: 1 将sql想关的数据放到一个字段里 2 select r.Region_Name, 3 STUFF((select ','+cast(c2.city_name as varchar(10)) [text()] 4 from City c2 5 inner join Region as r2 on 阅读全文
posted @ 2018-08-13 18:18 往事随风_go 阅读(791) 评论(0) 推荐(0)
摘要: <script language="javascript"> function CheckAll(e,itemname) { var aa = document.getElementsByName(itemname); if (aa == undefined) { return; } for (va 阅读全文
posted @ 2018-08-13 18:16 往事随风_go 阅读(93) 评论(0) 推荐(0)
摘要: 1 select cast(floor(rand()*20) as int)+1 as P_jsnews_id 2 3 select top 20 * from P_jsnews where P_jsnews_id>(select cast(floor(rand()*1000) as int)+1 as P_jsnews_id) 4 5 select top 20 * from ... 阅读全文
posted @ 2018-08-13 18:15 往事随风_go 阅读(283) 评论(0) 推荐(0)
摘要: // var strMess = '<%=Exchange() %>';// if (strMess == "兑换成功") {// $("#btnSure").show(); //显示提交按钮// }// else if (strMess.length > 0) {// alert(strMess) 阅读全文
posted @ 2018-08-13 18:14 往事随风_go 阅读(229) 评论(0) 推荐(0)
摘要: 1 2 3 4 5 6 7 无标题页 8 17 18 146 147 148 149 150 151 152 153 154 155 156 157 dictionary 158 159 160 ... 阅读全文
posted @ 2018-08-13 18:13 往事随风_go 阅读(530) 评论(0) 推荐(0)
摘要: 1 select CONVERT(varchar, getdate(), 120 ) 2 2004-09-12 11:06:08 3 4 select replace(replace(replace(CONVERT(varchar, getdate(), 120 ),'-',''),' ',''),':','') 5 20040912110608 6 7 select COUN... 阅读全文
posted @ 2018-08-13 18:10 往事随风_go 阅读(508) 评论(0) 推荐(0)
摘要: 1 window.history.go(0) // window.history.go(-n) 表示返回上n级目录 2 window.location.reload() // window.parent.location.reload() 表示对父框架页面的刷新(注:加了parent的都是将js效果 阅读全文
posted @ 2018-08-13 18:09 往事随风_go 阅读(175) 评论(0) 推荐(0)
摘要: string[] abc=new string[8]{"1","2","3","4","1","2","3","4"};Response.Write(Array.IndexOf(abc,"3",1));//在abc数组中查找"3",从abc[1]开始找Response.Write(Array.Las 阅读全文
posted @ 2018-08-13 18:08 往事随风_go 阅读(197) 评论(0) 推荐(0)
摘要: 我不是一个很有经验的程序员,在做项目的过程中会遇到很多的问题,在数据库中使用分页就是我做项目中遇到的一个问题.我从网上查了很多资料,有很多种方法.但我觉的创建临时数据表是最简单的方法,在我做Membership扩展时发现原来微软也是这样用的,你可一随便打开一个Membership的存储过程看看. 说 阅读全文
posted @ 2018-08-13 18:06 往事随风_go 阅读(139) 评论(0) 推荐(0)
摘要: 数据库技术是信息资源管理最有效的手段。数据库设计是建立数据库及其应用系统的核心和基础,它要求对于指定的应用环境,构造出较优的数据库模式,建立起数据库应用系统,并使系统能有效地存储数据,满足用户的各种应用需求。1、设计数据库之前1)理解客户需求,询问用户如何看待未来需求变化。让客户解释其需求,而且随着 阅读全文
posted @ 2018-08-13 18:05 往事随风_go 阅读(8127) 评论(0) 推荐(0)
摘要: 获取一组radio被选中项的值:var item = $('input[name=items][checked]').val();获取select被选中项的文本var item = $("select[@name=items] option[@selected]").text(); 获取select 阅读全文
posted @ 2018-08-13 18:03 往事随风_go 阅读(3155) 评论(0) 推荐(0)
摘要: 1 获取select : 2 获取select 选中的 text : 3 4 1$("#ddlregtype").find("option:selected").text(); 5 获取select选中的 value: 6 7 1$("#ddlregtype ").val(); 8 获取select选中的索引: 9 10 1$("#ddlregtype ").ge... 阅读全文
posted @ 2018-08-13 18:00 往事随风_go 阅读(211) 评论(0) 推荐(0)
摘要: // 页面加载时 /// /// /// protected void Page_Load(object sender, EventArgs e) { //判断是否异步请求 if (Request.QueryString["ajax"] == "1") { ProcessRequ... 阅读全文
posted @ 2018-08-13 17:57 往事随风_go 阅读(1121) 评论(0) 推荐(0)
摘要: 1 2 3 // **************************************************************** // 4 // function Trim(value) 5 // -------------- 6 // 功能:删除两端空格(= Trim) 7 // 参数: value 要格式化的字符串 8 //... 阅读全文
posted @ 2018-08-13 17:56 往事随风_go 阅读(275) 评论(0) 推荐(0)
摘要: 1 JS验证验证服务器控件 2 3 52 53 阅读全文
posted @ 2018-08-13 17:54 往事随风_go 阅读(184) 评论(0) 推荐(0)
摘要: 1 private void button1_Click(object sender, EventArgs e) 2 { 3 this.textBox1.Text = "10005"; 4 } 5 //给字符串加. 6 private void Form1_Load(object sender, EventArgs e) 7 {... 阅读全文
posted @ 2018-08-13 17:52 往事随风_go 阅读(109) 评论(0) 推荐(0)
摘要: 1 public override bool AccptChange() 2 { 3 //if (oldvalue == null || oldvalue.Count [] g = new Dictionary[4]; 8 g[0] = new Dictionary(); 9 g[1] = new... 阅读全文
posted @ 2018-08-13 17:51 往事随风_go 阅读(306) 评论(0) 推荐(0)
摘要: 1 select 2 DevName as 设备名称, 3 count(flux) as 流量数据个数, 4 max(flux) as 流量最大值, 5 min(flux) as 流量最小值, 6 avg(flux) as 流量平均值, 7 count(Flux_AV) as 流速数据个数, 8 m 阅读全文
posted @ 2018-08-13 17:48 往事随风_go 阅读(1279) 评论(0) 推荐(0)
摘要: 方法一 在DOS提示符下,c:\>isql -U sa -P (此处输入SA密码) 注 大小写敏感 回车后会出现"1>"提示符,表明已成功,此时可在DOS下做任何SQL语句操作 1>use northwind //要操作的数据库的名称 2>go 1>select * from orders //or 阅读全文
posted @ 2018-08-13 17:43 往事随风_go 阅读(238) 评论(0) 推荐(0)
摘要: 1 c# 分批处理数据录入 2 3 //using System.Text; 4 5 //using System.Data; 6 7 //using System.Data.SqlClient; 8 9 //using System; 10 11 //namespace InsertEfficie 阅读全文
posted @ 2018-08-13 17:25 往事随风_go 阅读(1023) 评论(0) 推荐(0)
摘要: 虚拟机使用的是VMware Workstation ,并且首次在虚拟机体验64 位系统。在新建好虚拟机,运行时候就出现了VMware Workstation 的提醒:此主机支持 Intel VT-x,但 Intel VT-x 处于禁用状态。如图: 提示信息: 已将该虚拟机配置为使用 64 位客户机操 阅读全文
posted @ 2018-08-13 17:19 往事随风_go 阅读(487) 评论(0) 推荐(0)