明天的明天 永远的永远 未知的一切 我与你一起承担 ??

是非成败转头空 青山依旧在 几度夕阳红 。。。
  博客园  :: 首页  :: 管理

2006年12月15日

摘要: select 部门, convert(char(7),时间,120) as 月份, sum(总金额) as 总金额from 表 group by 部门,convert(char(7),时间,120) as 月份=================================================表里的字段:部门,时间,总金额 要按部门,按月份统计总金额显示,怎么... 阅读全文

posted @ 2006-12-15 11:48 且行且思 阅读(2430) 评论(0) 推荐(0) 编辑

摘要: if object_id('pubs..tb') is not null drop table tbgocreate table tb(noteid varchar(10),saledate datetime)insert into tb(noteid,saledate) values('v1','2005-09-12')insert into tb(noteid,saledate) va... 阅读全文

posted @ 2006-12-15 11:37 且行且思 阅读(750) 评论(0) 推荐(0) 编辑

摘要: 多行录入提交AAABBBCCC-----------------------------------------------------------------------------using System;using System.Data;using System.Web.UI.WebControls; namespace bsTest2005_8_16.Samples{/// /// 多行... 阅读全文

posted @ 2006-12-15 11:33 且行且思 阅读(1927) 评论(0) 推荐(0) 编辑

摘要: 时间的格式化显示System.DateTime currentTime=new System.DateTime(); 1.1 取当前年月日时分秒 currentTime=System.DateTime.Now; 1.2 取当前年 int 年=currentTime.Year; 1.3 取当前月 int 月=currentTime.Month; 1.4 取当前日 int 日=currentTime.... 阅读全文

posted @ 2006-12-15 11:29 且行且思 阅读(315) 评论(0) 推荐(0) 编辑