天使半只翼

  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

2012年12月31日

摘要: 一、Linq有两种语法:1、 方法语法2、 查询语法下面举个例子看看这两种方法的区别比如现在有一个学生类public class student{ public string username { get; set; } public int age { get; set; } public string sex { get; set; }}我们通过一个方法来添加很多同学public IList<student> GetStu(int n) { IList<student> stuList = new List<student>(); for (int i 阅读全文
posted @ 2012-12-31 11:23 天使半只翼 阅读(164) 评论(0) 推荐(0) 编辑

2012年12月23日

摘要: 给自己写一份五年后的简历!三年内的总结!Nginx 是一个HTTP和反向代理服务器,提供IMOP,POP3,STMP等代理服务器。有占有内存少,并发能力强等特点。 可以通过Nginx来提供反向代理找资源请求均匀的分配给战点服务器群。MeMcached 是高性能的分布式内存缓存服务器,通过缓存数据库查询结果,减少数据库查询次数,提高动态WEB的应用速度, 提高可扩展性。MongoDB 基于分布式文件存取的数据库。SSO 登陆一次就可以访问所有信任的程序。 阅读全文
posted @ 2012-12-23 23:44 天使半只翼 阅读(298) 评论(0) 推荐(0) 编辑

2012年12月11日

摘要: insert into 表A (id,name,title) select id,name,title from 表B如果是不同数据库里的表insert into 数据库1.dbo.表A (id,name,title) select id,name,title from 数据库2.dbo.表B 阅读全文
posted @ 2012-12-11 11:50 天使半只翼 阅读(193) 评论(0) 推荐(0) 编辑

2012年11月30日

摘要: 删除所有记录: delete from 表名自增计数器复位: truncate table 表名 阅读全文
posted @ 2012-11-30 14:12 天使半只翼 阅读(347) 评论(0) 推荐(0) 编辑

2012年11月15日

摘要: 个人改良了一下做做成函数:调用函数$(document).ready(function(){ autoImg("#text2 img",600);autoImg("#text1 img",600);});函数function autoImg(tNmae,wValue){ $(tNmae).each(function(){ if (this.width>wValue) {this.width = wValue;} }); } 阅读全文
posted @ 2012-11-15 12:55 天使半只翼 阅读(731) 评论(0) 推荐(0) 编辑

摘要: onClick="deleteMe(this.parentNode.parentNode);父节点的父节点,比如有这样一段HTML:<form id="form"><div id="divA"> <div id="divB"> <input type="button" value="删除" onClick="deleteMe(this.parentNode.parentNode);"> </div>< 阅读全文
posted @ 2012-11-15 11:01 天使半只翼 阅读(261) 评论(0) 推荐(0) 编辑

2012年11月11日

摘要: 获取Ewebeditor编辑器图片地址 ---获取编辑器图片地址---<input type=hidden name=Newfilename> <!--图片名称--><input type=hidden name=pathfilename> <!--图片地址--><iframe ID='eWebEditor1' src='../ewebeditor/ewebeditor.htm?id=content&style=coolblue&originalfilename=filename&savefi 阅读全文
posted @ 2012-11-11 21:06 天使半只翼 阅读(546) 评论(0) 推荐(0) 编辑

2012年11月6日

摘要: <%'*======================================'* 名称:useDb.asp'* 功能:数据库操作函数库'* 作者:intereye'* 信箱:inteye@163.com'* 主页:http://www.inteye.net'* BLOG:http://blog.csdn.net/intereye'*======================================'* 函数:openDb(dbType,dbUser,dbPass,dbName,dbServer,db 阅读全文
posted @ 2012-11-06 09:48 天使半只翼 阅读(1172) 评论(0) 推荐(0) 编辑

摘要: 复制以下代码在查询里执行就可以啦。使用办法:selectdbo.split(parentpath, ',', 1) (’字段|字段|字段‘,'|',取出那一段从0开始)set ANSI_NULLS ONset QUOTED_IDENTIFIER ONGOcreate FUNCTION [dbo].[split] (@str nvarchar(4000),@code varchar(10),@no int ) RETURNS varchar(200)AS BEGIN declare @intLen intdeclare @count intdeclare @i.. 阅读全文
posted @ 2012-11-06 09:44 天使半只翼 阅读(820) 评论(0) 推荐(0) 编辑

2012年11月5日

摘要: <%@ Language=VBScript CODEPAGE=950%><% Option Explicit %><%' ============================================' 常用全局變量' ============================================' 數據庫對像Dim oConn, oRs, sSql' ============================================' 初始數據處理' =============== 阅读全文
posted @ 2012-11-05 11:00 天使半只翼 阅读(328) 评论(0) 推荐(0) 编辑