摘要:
分页思路1 1.先查询出已经看过的数据,然后从总的数据中排除已经看过的数据,剩下的数据取前n条 例:每页5条数据,要看第三页 select top 5 * from Contacts where contactId not in (select top ((3-1)*5) contactId fro 阅读全文
摘要:
this关键字 表示类中的属性和方法调用本类中的构造方法表示当前对象。 代码 public class text01_1 { public static void main(String[] args){ //System.out.print(args[0]); People pl=new Peop 阅读全文
摘要:
switch语句 # switch(表达式){ case 常量1:代码块1; break; case 常量2:代码块2; break; case 常量3:代码块3; break; default:以上常量值均不是,执行本代码 } 如果是几种情况执行相同的代码,可以 case 1: case 2: c 阅读全文