摘要:
DataTable A = new DataTable(); A.Columns.Add("MenuName", typeof(string)); A.Columns.Add("nowvisitnum", typeof(int)); DataRow drA = null; drA = A.NewRo 阅读全文
摘要:
在mysql中是没有top关键字的,在mysql中可以用limit来完成功能。 order by id limit 5,10 按照id的正序排序 从第5条开始取10条 阅读全文
摘要:
C#里内置的DateTime基本上都可以实现这些功能,巧用DateTime会使你处理这些事来变轻松多了今天DateTime.Now.Date.ToShortDateString();昨天,就是今天的日期减一DateTime.Now.AddDays(-1).ToShortDateString();明天 阅读全文