新手一枚,本篇屬於學習記錄。
create
table student(
sno varchar2(8)
primary
key,
sname varchar2(10)
notnull
, *** varchar2(2)
, sage number(2)
, brithday date
);
public
class
dbconnect
catch
(exception e)
return connect;
}public
void
cos(
)"資料庫連線已關閉!");
}catch
(exception e)
}}
public
class
studentvo
public
void
setsno
(string sno)
public string getsname()
public
void
setsname
(string sname)
public
intgetage()
public
void
setage
(int age)
public date getbirthday()
public
void
setbirthday
(date birthday)
public string getgender()
public
void
setgender
(string gender)
}
public
inte***ce
studentdao
public
class
studentdaoimpl
extends
dbconnect
implements
studentdao
@override
public
intinsert
(studentvo stu)
@override
public studentvo selectbysno
(string sno)
@override
public list
selectall()
}catch
(sqlexception e)
finally
catch
(sqlexception e)
"rs關閉!");
}this
.cos()
;}return list;
}@override
public
intupdata
(studentvo stu)
@override
public list
fuzzyname
(string fname,string fno)
}
="header"
>
學生管理系統<
/h1>
<
/div>
"float: right;margin-right: 20px;"
>當前使用者:
<
%=session.
getattribute
("username")%
>
<
/label>
<
/font>
="ldiv"
>
"#"class
="aone" onclick=
"showalldata()"
>學生管理<
/a>
"login.jsp"
class
="aone" onclick=
" "
>退出系統<
/a>
<
/div>
="rdiv" id=
"hidediv"
>
"padding-left: 220px;" size=
"13"
>歡迎使用學生管理系統!<
/font>
<
/div>
="rdiv" style=
"display: none;" id=
"rdiv"
>
"adduser()" style=
"width: 100px;"
>新增<
/button>
學號:<
/label>
"text" id=
"selectuserid"
class
="in"
>
姓名:<
/label>
"text" id=
"selectusername"
class
="in"
>
"selectbyname()"
>查詢<
/button>
>
>
"border-collapse:collapse;margin-left:40px;" id=
"table" align=
"center"
>
學號<
/th>
姓名<
/th>
性別<
/th>
年齡<
/th>
生日<
/th>
操作<
/th>
<
/tr>
"tbody"
>
<
% studentdaoimpl stu =
newstudentdaoimpl()
; list
stus=stu.
selectall()
;//顯示所有記錄
if(stus.
size()
!=0)}
%>
<
/tbody>
<
/table>
<
/div>
<
%int k=0;
ifgetattribute
("least"
)==null)
else
%>
"padding: 250px;"
>您是第<
%=k %
>位訪問使用者<
/font>
<
%k++
;setattribute
("least"
,k);
%>
<
/body>
沒有寫完暫時先寫這麼多。 小案例 Java實現簡單 學生選課系統
案例要求忘記了 大概是 學生 學號,姓名,專業,所選課程 老師 工號,姓名,所教課程 課程 課程號,課程名,學分,教師,已選課學生 選課系統 如下 teacher public class teacher public teacher int id,string teachername 修改或是新增...
雙鏈表實現簡單的學生管理系統
include include stdlib.h include string.h filename sm.c authour self chou version 1.0 date 2012.07 description 用鍊錶實現簡單的學生管理系統 function list create 學生資...
鍊錶實現簡單學生資訊管理
include include include define len sizeof struct stu typedef long long ll struct stu 建立學生資訊的結構體,包含學號,姓名 成績三個子項 struct stu creat 建立乙個鍊錶 if tail null 將尾...