摘要:
1、聚合函数 --(1)求员工的总人数 select count(*) from People --(2)求最大值,最高工资 select max(PeopleSalary) from People --(3)求最小值,最低工资 select min(PeopleSalary) from Peopl 阅读全文
摘要:
静态类方法:不需要实例化,直接 类名.方法名,调用静态成员。 using System; using System.Collections.Generic; using System.Text; namespace 静态类和非静态类的区别 { public class Person { public 阅读全文
摘要:
用接口,可以让学生继承2个类, 接口是一种规范,一种能力,一种扩展 using System; namespace 多态之接口类 { class Program { static void Main(string[] args) { //接口就是一个规范、能力。 Student ss = new S 阅读全文
摘要:
using System; using System.Collections.Generic; namespace List_泛型集合 { class Program { static void Main(string[] args) { //创建泛型集合对象 List<int> list = ne 阅读全文