摘要: 统计月份:selectleft(convert(char(10),[Article_TimeDate],102),7)as月份,count(*)as数量from[hdsource].[dbo].[article]groupbyleft(convert(char(10),[Article_TimeDate],102),7)orderby1统计年份:selectleft(convert(char(10... 阅读全文
posted @ 2008-05-29 11:15 GuoyingXiao 阅读(328) 评论(0) 推荐(0) 编辑
摘要: 第一,声明一个委托:publicdelegatevoidmyinvole(stringstr);第二,创建线程和委托的使用:privatevoidbutton3_Click(objectsender,EventArgse){Threadt=newThread(newThreadStart(GetTextFun));t.Start();}//线程指向的方法privatevoidGetTextFun(... 阅读全文
posted @ 2008-05-29 10:44 GuoyingXiao 阅读(1198) 评论(0) 推荐(0) 编辑
摘要: 首先在数据库里建立一个表,存放文件的字段为Image类型。存入数据库的代码:privatevoidSaveDocument(){SqlConnectioncn=newSqlConnection(@"DataSource=STAR2\RIVER3;InitialCatalog=Northwind;IntegratedSecurity=True");FileInfofi=newFileInfo(@"C... 阅读全文
posted @ 2008-05-29 10:33 GuoyingXiao 阅读(359) 评论(0) 推荐(0) 编辑