摘要: 有两个表,分类表,和文件表 两个表的关联地段是分类ID 要求,查询每个分类表下面最后更新的三条文件表数据 select * from Category as c cross apply (select top 3 * from FileCategory as rc where c.Id = Cate 阅读全文
posted @ 2021-01-25 18:16 jasonlai2016 阅读(465) 评论(0) 推荐(0)
摘要: 一 通过EF代码创建 protected override void OnModelCreating(ModelBuilder modelBuilder) { modelBuilder.Entity<DataSample>(entity => { entity.HasIndex(e => e.Sor 阅读全文
posted @ 2021-01-25 17:24 jasonlai2016 阅读(524) 评论(0) 推荐(0)
摘要: use DATABASExxx DECLARE @st DATETIME = GETDATE() SELECT * FROM tableXXX SELECT DATEDIFF(MS, @st, GETDATE()) AS 执行时间 阅读全文
posted @ 2021-01-25 09:05 jasonlai2016 阅读(276) 评论(0) 推荐(0)