摘要: null,""比较null表示没有赋过值,什么都没有,不能确定数据类型,常用is null""表示的意思是字符类型,是一个长度为零的字符串char,varchar,nvarchar 比较char占固定长度,固定空间,例如char(10),如果赋值为"ab",也是占用10个内存空间,只不过后八个位置是“”,程序里面取值的时候要用trim(),效率较高varchar 是可变长度... 阅读全文
posted @ 2010-06-12 09:34 艾伦 阅读(263) 评论(0) 推荐(2) 编辑
摘要: js里面这三种东西总是让人疑惑,特此整理一下 null,对象不存在 var ii= document.getElementById("id"); alert(ii); 当前页面不存在id对象   undefined  var i; alert(i);  声明的变量没有初始化   alert(document.oiji);   或者对象属性,方法不存在   空   <asp:TextBox... 阅读全文
posted @ 2010-06-11 22:30 艾伦 阅读(259) 评论(0) 推荐(0) 编辑
摘要: 表结构如上图,所示表内容如下图所示,A_emp的deptid字段对应A_dept表的id字段需求:取出张三所属公司的所有员工sql写法:select * from A_emp e right join A_dept d on d.id=e.deptidwhere d.company =(select company from A_emp e inner join A_dept d on d.id=... 阅读全文
posted @ 2010-06-11 14:41 艾伦 阅读(196) 评论(2) 推荐(0) 编辑
摘要: string 是定长字符串string长度固定,"+"的时候创建一个新的string,调用构造函数,占用内存空间例如:string str1="abc";   string str2="bcd";string str3=str1+str2;//str3="abcbcd"创建了一个新的stringStringBuilder是可变长字符串StringBuilder strSql = new Strin... 阅读全文
posted @ 2010-06-10 21:21 艾伦 阅读(344) 评论(0) 推荐(0) 编辑
摘要: 方法一:html源码: <select name="select" onchange="changeSelectB()"> <option value="aaa">1</option> <option value="bbb">2</option> <option value="ccc">3</option> <... 阅读全文
posted @ 2010-06-10 09:06 艾伦 阅读(2665) 评论(2) 推荐(0) 编辑
摘要: 开门见山讲一下两者的区别document.getElementById("name").style.display ="none";//隐藏不保留位置document.getElementById("sex").style.visibility ="hidden";//隐藏占用页面空间读者可以用下面的例子看一下具体结果:html 部分: <asp:TextBox ID="name" runa... 阅读全文
posted @ 2010-06-09 22:07 艾伦 阅读(246) 评论(0) 推荐(1) 编辑
摘要: Id Total Name1  1  a2  2  b3  9  dfgdg4  7  dfd5  4  cc6  4  ccv7  2  cb8  1  bbb9  8  cc10  5  bbb数据库数据如上所示需求:total大于5,total置为5,total小于3,置为1,其他totao置为3update Aset total = case when total<3 then 1 ... 阅读全文
posted @ 2010-06-09 11:02 艾伦 阅读(595) 评论(1) 推荐(0) 编辑
摘要: http://focus.it168.com/focus/201006/mobile/index.html这是一个常见的Url,如果我们要取得地址中的域名,也就是:http://focus.it168.com.net(C#方法实现)web版本:   string str = "http://focus.it168.com/focus/201006/mobile/index.html"; int l... 阅读全文
posted @ 2010-06-09 09:20 艾伦 阅读(1155) 评论(0) 推荐(1) 编辑
摘要: <div id="div2"> <asp:TextBox ID="name" runat="server" Width="100px"></asp:TextBox> <asp:TextBox ID="sex" runat="server" Width="100px"></asp:TextBox> <input type ="text... 阅读全文
posted @ 2010-06-08 20:04 艾伦 阅读(1280) 评论(1) 推荐(0) 编辑
摘要: <a href="hash.aspx" target="_blank">bbbb</a>普通的弹出页面写法,弹出hash.aspx,但是这种写法不符合w3c的标准下面是符合w3c标准的写法 <a href="hash.aspx" rel="external">ssss</a> <script language="javascript" type... 阅读全文
posted @ 2010-06-02 16:26 艾伦 阅读(340) 评论(0) 推荐(0) 编辑