摘要: SqlServer的T-Sql如下:表结构:字段名 id title content类型 int char(200) textInsert Into News (title,content) Values (@title,@content)实际上这样插入是不能超过8000字节的(content字段)。SqlServer在这方面... 阅读全文
posted @ 2006-10-12 16:31 记得忘记 阅读(819) 评论(0) 推荐(0)
摘要: 哈希表中的项存储在System.Collections.DictionaryEntry 对象中,可用foreach来遍历哈希表中的值,如下: Hashtable myHashtable = new Hashtable; foreach(DictionaryEntry entry in myHashtable) { string strKey = entry.Key; string st... 阅读全文
posted @ 2006-10-12 16:18 记得忘记 阅读(235) 评论(0) 推荐(0)
摘要: System.Collections.ArrayList类是一个特殊的数组。通过添加和删除元素,就可以动态改 变数组的长度。 一.优点 1、支持自动改变大小的功能2、可以灵活的插入元素3、可以灵活的删除元素 二.局限性 跟一般的数组比起来,速度上差些 三.添加元素 1.public virtual int Add(objectvalue); 将对象添加到ArrayList的结尾处 ArrayLis... 阅读全文
posted @ 2006-10-12 15:51 记得忘记 阅读(338) 评论(0) 推荐(0)