摘要: 一、GroupBY与group by //单条件,并返回序列中满足指定条件的第一个元素(相当于list按照user_type去重,可以是多条).list = list.GroupBy(a => a.user_type).Select(it => it.First()).ToList(); //多条件 阅读全文
posted @ 2021-01-22 15:05 张炮炮 阅读(353) 评论(0) 推荐(0)
摘要: #A 临时表if object_id('tempdb..#A') is not null //判断临时表是否存在Begin drop table #A //删除Endselect * into #A from 表名称 阅读全文
posted @ 2020-12-21 13:56 张炮炮 阅读(488) 评论(0) 推荐(0)