03 2021 档案
摘要:需求:查询出每一个会员最晚发布的一条出租商铺信息 SELECT TOP 4 LH.ID , LH.Cust_id , LH.Title , LH.AddDate , LH.Classification --,LH.add_domain domain FROM ( SELECT LP_HouseRen
阅读全文
摘要:处理思路 : where 限制 一段时间内条件及其他限制条件 ,group by 按天分组, convert函数处理时间(将时间格式化日期的格式)。其实就是按天分组统计数据 需求:统计每天的发货量 select convert(varchar(100),t.time,23) [date] ,coun
阅读全文
摘要:SELECT cust_id, com.com_name,com.contact,com.cell,com.pro || com.city || com.county || com.address AS dizhi FROM huiyuan INNER JOIN com ON huiyuan.id=
阅读全文
摘要:private DataTable GetDataTable(DataTable table1 ,DataTable table2) { DataTable result = null; if (table1.Rows.Count>0&&table1!=null) { result = table1
阅读全文
摘要:需求:查询指定时间范围内的记录数,该记录主要说明时间的使用方式,在查询的时候不需要转换时间。 //开始时间 DateTime bgTime; if (!string.IsNullOrEmpty(beginTime) & DateTime.TryParse(beginTime, out bgTime)
阅读全文

浙公网安备 33010602011771号