01 2013 档案

摘要:一. 二进制转换成图片MemoryStream ms = new MemoryStream(bytes);ms.Position = 0;Image img = Image.FromStream(ms);ms.Close();this.pictureBox1.Image二. C#中byte[]与string的转换代码1、System.Text.UnicodeEncoding converter = new System.Text.UnicodeEncoding(); byte[] inputBytes =converter.GetBytes(inputString); string inp.. 阅读全文
posted @ 2013-01-29 11:37 M' 阅读(658) 评论(1) 推荐(0) 编辑
摘要:1. 新建工程a) 引用Lucene.Net.dllusing Lucene.Net.Index;using Lucene.Net.Documents;using Lucene.Net.Analysis;using Lucene.Net.Analysis.Standard;using Lucene.Net.Search;using Lucene.Net.QueryParsers;2. 创建索引(Creating an index)在你开始进行搜索之前,你需要创建一个的索引,并且添加你想搜索的数据a) .创建索引使用一个名叫 IndexWriter的类IndexWriter writer = n 阅读全文
posted @ 2013-01-07 11:39 M' 阅读(290) 评论(0) 推荐(0) 编辑
摘要:直接看例子例子: table id name 1 a 2 b 3 c 4 c 5 b1 通过 distinct 来实现select distinct name from table结果:nameabc2 通过 group_concat 配合 group by 来实现 (注意:需要mysql 4.1及以上)select id,group_concat(distinct name) from table group by name结果:id name1 a2 b3 c3 通过select id, count(distinct name) from table group by name结果:id. 阅读全文
posted @ 2013-01-02 22:01 M' 阅读(363) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示