12 2018 档案
DataTable 操作
摘要:public void CreateTable() { //创建表 DataTable dt = new DataTable(); //1、添加列 dt.Columns.Add("Name", typeof(string)); //数据类型为 文本 //2、通过列架构添加列 DataColumn a 阅读全文
posted @ 2018-12-27 14:46 雪夜 阅读(436) 评论(0) 推荐(0)
统计销售额
摘要:```code 1、每年 select year(ordertime) 年, sum(Total) 销售合计 from 订单表 group by year(ordertime) 2、每月 select year(ordertime) 年, month(ordertime) 月, sum(Total) 销售合计 from 订单表 group by year(ordertime), month(or... 阅读全文
posted @ 2018-12-13 14:01 雪夜 阅读(297) 评论(0) 推荐(0)