2017年8月22日

SQL统计每天、每月、每年的数据

摘要: 1、每年select year(ordertime) 年,sum(Total) 销售合计from 订单表group by year(ordertime)2、每月select year(ordertime) 年,month(ordertime) 月,sum(Total) 销售合计from 订单表gro 阅读全文

posted @ 2017-08-22 17:16 A欣 阅读(588) 评论(0) 推荐(0) 编辑

js获取url中的参数

摘要: //获取url中的参数 function getUrlParam(name) { var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)"); //构造一个含有目标参数的正则表达式对象 var r = window.location.search.s 阅读全文

posted @ 2017-08-22 17:08 A欣 阅读(325) 评论(0) 推荐(0) 编辑

sql查询某年某月的数据

摘要: USE [Dormitory ]GO SELECT [Eid] ,[Erid] ,[Eletoday] ,[Eledate] FROM [dbo].[Electricity] where year([Eledate])=2017 某年GO where month([Eledate])=3 某月 阅读全文

posted @ 2017-08-22 10:03 A欣 阅读(763) 评论(0) 推荐(0) 编辑

导航