• 博客园logo
  • 会员
  • 众包
  • 新闻
  • 博问
  • 闪存
  • 赞助商
  • HarmonyOS
  • Chat2DB
    • 搜索
      所有博客
    • 搜索
      当前博客
  • 写随笔 我的博客 短消息 简洁模式
    用户头像
    我的博客 我的园子 账号设置 会员中心 简洁模式 ... 退出登录
    注册 登录
爱白菜的小昆虫
博客园    首页    新随笔    联系   管理    订阅  订阅
上一页 1 ··· 8 9 10 11 12 13 14 15 16 ··· 18 下一页
2015年5月5日
SQL 自动增长 identity
摘要: create table Users(id int identity(10000,1),--id 从10000开始,增加长度为1name nvarchar(10),);--执行三次这个语句insert into Users values('小昆虫'); 阅读全文
posted @ 2015-05-05 11:29 爱白菜的小昆虫 阅读(221) 评论(0) 推荐(0)
2015年5月2日
SQL 基本的函数
摘要: select * from emp;select max(sal) from emp;--sal中最大值select min(sal) from emp;--sal中最小值select avg(sal) from emp;--sal的平均值select count(sal) from emp;--统... 阅读全文
posted @ 2015-05-02 17:58 爱白菜的小昆虫 阅读(236) 评论(0) 推荐(0)
int和long long有符号整形 负数比正数多一个
摘要: int的负数比正数多一个,则有一个负数在int范围内没有对应的正数最大正整数用十六进制,很容易表示:0x7f ff ff ffint num = 0x7fffffff;num = -num;printf("%d\n", num);printf("%d\n", -num);最小负整数则是 int... 阅读全文
posted @ 2015-05-02 13:54 爱白菜的小昆虫 阅读(1716) 评论(0) 推荐(0)
__int64和long long输入输出
摘要: __int64 num;scanf("%I64d", &num);printf("%I64d\n", num);long long num;scanf("%lld", &num);printf("%lld\n", num); 阅读全文
posted @ 2015-05-02 13:44 爱白菜的小昆虫 阅读(293) 评论(0) 推荐(0)
2015年5月1日
SQL like 模糊查询
摘要: select * from emp;--查询ename中含有A的字母select * from emp where ename like '%A%';--查询ename中第一个字母是A的输出select * from emp where ename like 'A%';--查询ename中末尾字母为... 阅读全文
posted @ 2015-05-01 13:15 爱白菜的小昆虫 阅读(2423) 评论(0) 推荐(0)
2015年4月27日
<s:iterator> 对list操作的一种方法
摘要: 显示效果完整代码 1 2 3 4 5 6 7 Insert title here 8 9 10 30 48 49 50 51 52 53 ... 阅读全文
posted @ 2015-04-27 23:59 爱白菜的小昆虫 阅读(833) 评论(0) 推荐(0)
struts2 radio标签 单选按钮
摘要: value="'男'" 表示单选按钮默认 男 阅读全文
posted @ 2015-04-27 14:17 爱白菜的小昆虫 阅读(466) 评论(0) 推荐(0)
2015年4月26日
stucts2 基础程序
摘要: 参考《Struts2+Hibernate+Spring》index.jsp 1 2 3 4 5 6 Insert title here 7 8 9 10 11 12 13 14 15 View CodeLoginUser.... 阅读全文
posted @ 2015-04-26 22:53 爱白菜的小昆虫 阅读(299) 评论(0) 推荐(0)
2015年4月25日
SQL order by 两个字段排序
摘要: select * from emp;--先按照sal排序,如果sal相同,就按照deptno排序select * from emp order by sal, deptno;--先按照deptno排序,如果deptno相同,就按照sal排序select * from emp order by dep... 阅读全文
posted @ 2015-04-25 23:35 爱白菜的小昆虫 阅读(2001) 评论(0) 推荐(0)
2015年4月24日
SQL isnull函数
摘要: select * from emp;--就算年收入:sal*12+comm,sal为月工资,comm为年薪select ename, sal*12+isnull(comm, 0) from emp;--为什么要使用isnull函数,因为null值不能参加运算select ename, sal*12+... 阅读全文
posted @ 2015-04-24 12:24 爱白菜的小昆虫 阅读(283) 评论(0) 推荐(0)
上一页 1 ··· 8 9 10 11 12 13 14 15 16 ··· 18 下一页
博客园  ©  2004-2025
浙公网安备 33010602011771号 浙ICP备2021040463号-3