摘要:
用于获取数据源var queryAllCustomers=from cust in Customers select cust;需求:查询出成绩有90分以上的学生,得到他们的名字和成绩//数据源IList<Student> students = new List<Student>{ new Stud 阅读全文
摘要:
https://www.cnblogs.com/lideng/archive/2013/04/15/3022418.html 1.标量函数:返回标量数据类型 create function Foo(@ret int)returns intasbegin declare @n int set @n=3 阅读全文
摘要:
使用分析函数row_number() over (partiion by ... order by ...)来进行分组编号,然后取分组标号值为1的记录即可。目前主流的数据库都有支持分析函数,很好用。 其中,partition by 是指定按哪些字段进行分组,这些字段值相同的记录将在一起编号;orde 阅读全文