USE study;SELECT * FROM EMP --查询雇员姓名的最后三个字母SELECT ename,right(ename,3) FROM EMP ;--查询10部门雇员进入公司的星期数SELECT ename,datename(month,hiredate) from EMP wher...
分类:
数据库 时间:
2014-08-12 13:00:44
阅读次数:
285
先上题目:1148 - Mad CountingPDF (English)StatisticsForumTime Limit:0.5 second(s)Memory Limit:32 MBMob was hijacked by the mayor of the Town "TruthTown". M...
分类:
其他好文 时间:
2014-08-11 23:52:03
阅读次数:
357
( 2010-8-27 记录)员工薪资历史 -Union 实现:
1、 表结构
Salary ( id , empID , jbxz,yfxz,sfxz,jse , pid )
Perion(id,bm,year,month,sdate,edate…)
表结构大体是这样的,其中 bm 是薪资日期编码如 2010-8 ,但是不一定也可以是 108 ,无规则可言。 Year 是薪资年...
分类:
其他好文 时间:
2014-08-11 17:58:12
阅读次数:
243
链接上一篇日志,下面介绍下C++里面的其他内容 补充上一届里面的异常处理代码: try { cout >oneday.year >> oneday.month >> oneday.day; return oneday;}void show(Date oneday){ cout 变量成员。(*p). ...
分类:
编程语言 时间:
2014-08-11 00:09:11
阅读次数:
343
字典树 (解析加模版)
分类: ACM2012-07-06
12:24 204人阅读 评论(0) 收藏 举报
字典树:又叫trie树,单词查找树。是一种树形结构,典型的用于统计。经常用于统计一片文章当中出现确定的单词的次数,它的优点就在于:省略了相同前缀的比较。以下图为例:用单词carbohy,carhure,english,englnee来构造的tri...
分类:
其他好文 时间:
2014-08-10 18:49:10
阅读次数:
222
以前初学java写万年历,都是采用基本的算法求出是否闰年闰月 计算公式如下
int year = 2014, month = 8, total = 0;
if (month == 1 || month == 3 || month == 5 || month == 7 || month == 8
|| month == 10 || month == 12) {
total ...
分类:
编程语言 时间:
2014-08-09 16:02:47
阅读次数:
275
调用代码一: [javascript] view plain copy print ? var?monthField?=?new?Ext.ux.MonthField({????? ????id:‘month‘,????? ????fieldLabel:?‘月份‘,????? ????allowBlank:fals...
分类:
Web程序 时间:
2014-08-08 16:39:16
阅读次数:
556
1. Forcing the use of English in JDK7 toolsjavac -J-Duser.language=en xxx.javajava -Duser.language=en xxxExecute below in the Run command window:-----...
分类:
编程语言 时间:
2014-08-07 22:52:35
阅读次数:
216
原数据格式如下:这是学生的成绩表,每科为一列,要求转换为下面的格式:即,把把课程列转换为行,把学生行转换为列:建表:create table #a(name varchar(20),english int,chinese int ,math int)insert into #a values( 'z...
分类:
其他好文 时间:
2014-08-07 00:16:06
阅读次数:
215
给一个n,一个目标串,之后n行每行一个字符串和一个对应的权值。求,在n个给定的串中选出若干个能组成目标串(每个串可以用多次),得到的权值和最大是多少。
(1<=n<=1000) and X (the length of goal is not bigger than 10000),n个串每个长度不超过30...
分类:
其他好文 时间:
2014-08-06 14:54:41
阅读次数:
284