1. Java代码的重构1. Java代码的重构 重构, 改善既有代码的设计 面向对象代码,
减少重复代码 Student 全部换成 Students 导入包, 就在上述Rename下选择Move进行包之间的移动 修改方法名称, 选中方法名称, 右键
上述操作中选择Pull up/Push do.....
分类:
系统相关 时间:
2014-05-31 17:07:23
阅读次数:
399
一直没实际的需求而使用ntile(),今天看了下,就是按序号分组的意思。还是以student表为例select
ntile(3) over (order by score desc) as zu, name, score, provincefrom student...
分类:
其他好文 时间:
2014-05-30 08:08:34
阅读次数:
294
-----------------------------增删该查------------------------------go--查询语句
select * from student where 1=1go--添加多条数据(用union关键字连接,不支持default关键字) Insert
in...
分类:
数据库 时间:
2014-05-30 01:55:32
阅读次数:
302
实现的效果为:在编辑视图中,对DateTime类型的属性,显示jQuery
UI的datepicker。效果如下: Student.cs public class Student { public int Id { get; set;
} public string Name { get; set;...
LENGTH()函数是比较简单同时也是非常有用的一个函数,在此小记一下,加深印象以备后用!1:先上实验的例子——我新建了一张Student表,插入了若干条测试数据,如下图所示:2:实验LENGTH()函数3:实验LENGTHB()函数解释一:此处的LENGTH()函数用于获取对应字段的字符长度解释二...
分类:
数据库 时间:
2014-05-28 02:11:55
阅读次数:
528
'''
【程序71】
题目:编写input()和output()函数输入,输出5个学生的数据记录。
1.程序分析:
2.程序源代码:
使用list来模拟结构(不使用class)
stu = [string,string,list]
'''
N = 3
#stu
# num : string
# name : string
# score[4]: list
student =...
分类:
编程语言 时间:
2014-05-26 04:11:00
阅读次数:
440
deleteStudentjsp.jsp页面代码 DELETE STUDENT 删除学生信息 ...
分类:
数据库 时间:
2014-05-25 23:44:41
阅读次数:
409
一、XML的两种约束DTD和Schema
摘自IBM官网一段话命名空间。
二、shema文件
student.xsd
xmlns="http://www.w3.org/2001/XMLSchema"
targetNamespace="http://www.example.org/student"
elementFormDefault="qualified">...
分类:
其他好文 时间:
2014-05-25 22:54:51
阅读次数:
385
[Submit][Status][Web
Board]
Description
定义一个Teacher(教师)类(教师号,姓名,性别,薪金)和一个Student(学生)类(学号,姓名,性别,成绩),二者有一部分数据成员是相同的,num(号码),name(姓名),sex(性别)。编写程序,将一个Student对象(学生)转换为Teacher(教师)类,只将以上3个相同的数据成...
分类:
编程语言 时间:
2014-05-24 23:28:26
阅读次数:
388
[Submit][Status][Web
Board]
Description
Student类含有私有数据成员:num,name,sex,公有成员函数: 输入函数get_value()和输出函数display()。采用公用继承方式实现类Student1,增加数据成员:age,addr,成员函数:get_value_1()和display_1()。在程序运行时输入num,n...
分类:
其他好文 时间:
2014-05-24 22:12:09
阅读次数:
309