- 博客(9)
- 资源 (3)
- 收藏
- 关注
原创 关于数据库分页查询
今天想写一些分页查询,在网上翻了一下对于SQLServer 的分页查询语句拿emp表来说吧总共有14条数据每页显示3条 查询第3页的数据select top 3 * from emp where e.empno not in(select top 6 empno from emp e); 对于oracle没有top关键字 使用rownum进行分页拿emp表
2013-06-14 22:57:45
739
原创 javascript(二)
String path = request.getContextPath();String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";%> "> two
2013-04-08 08:32:02
440
原创 javascript(一)
String path = request.getContextPath();String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";%> "> function changeT
2013-04-07 15:47:14
465
原创 C 判断是否是闰年
写一个程序 判断是否是闰年#include "stdio.h"#include "conio.h"#include main(){ int year; scanf("%d",&year); if((year%4==0)&&(year%100!=0)){ printf("yun nian"); }else if((year
2013-03-22 11:44:22
978
原创 C 求一元二次方程跟
求(ax方)+bx+c=0的跟,a,b,c 从键盘输入 #include "stdio.h"#include "conio.h"#include main(){ float a,b,c; float x1,x2; scanf("%f,%f,%f",&a,&b,&c); if((b*b-4*a*c) printf("n
2013-03-22 11:31:19
672
原创 c 将大写字符改成小写字母
c从键盘上输入一个字母 如果是大写将大写字符改成小写字母#include "stdio.h"#include "conio.h"#include main(){ char a; scanf("%c",&a); if((65 a=a+32; printf("%c",a); }else{
2013-03-22 11:07:45
934
原创 C 求三角形面积
从键盘上输入3个数,分别设为三角形的3条边,然后求其面积#include "stdio.h"#include "conio.h"#include main(){ float a,b,c; float area; float s; scanf("%f,%f,%f",&a,&b,&c); if((a+b) prin
2013-03-22 10:53:07
1269
原创 China译成密码
将“China”译成密码,密码规则:用原来的的字母后面第4个代替的原来的字母#include "stdio.h"#include "conio.h"main(){ char a='C'; char b='h'; char c='i'; char d='n'; char e='a'; a=a+4; b=b+4;
2013-03-22 10:17:55
1759
原创 新人学C
#include "stdio.h"#include "conio.h"int max1(int a,int b){ int c; if(a>b){ c=a; }else{ c=b; } return c;}int max2(int x,int y,int z){ int a=max1(x,
2013-03-22 09:34:20
572
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人