-
大小: 3MB文件類型: .zip金幣: 2下載: 0 次發(fā)布日期: 2023-08-10
- 語言: Java
- 標簽: java??課程設(shè)計??數(shù)據(jù)庫??MIS系統(tǒng)??
資源簡介
里面有java源代碼,不過寫的很亂,然后數(shù)據(jù)庫的代碼結(jié)構(gòu)也有,也有最后上交的課程設(shè)計報告,只是參考,如果運行,需要修改數(shù)據(jù)庫為自己的密碼,然后數(shù)據(jù)庫名,表結(jié)構(gòu)等,我在最后上交的文檔里面有寫到。

代碼片段和文件信息
package?DB;
import?java.sql.*;
public?class?Sjk?{
String?qd?=?“com.microsoft.sqlserver.jdbc.SQLServerDriver“;
String?lj?=?“jdbc:sqlserver://localhost:1433;DatabaseName=STU“;
String?yh?=?“sa“;
String?passwd?=?“123456“;
Connection?con?=?null;
Statement?stmt=null;
PreparedStatement?ps?=null;
ResultSet?rs?=?null;
public?Sjk()
{
try
{
System.out.println(“1“);
Class.forName(qd);
System.out.println(“2“);
con?=?DriverManager.getConnection(ljyhpasswd);
System.out.println(“數(shù)據(jù)庫連接successful“);
}
catch(Exception?e){System.out.println(“數(shù)據(jù)庫連接失敗“);}
}
public?ResultSet?query(String?sqlString?[]jilu)
{
try
{
ps?=?con.prepareStatement(sql);
for(int?i?=?0;i {
ps.setString(i+1jilu[i]);
}
rs?=?ps.executeQuery();
System.out.println(rs);
}
catch(Exception?e){}
return?rs;
}
public?void?close()
{
try
{
if(rs!=null){rs.close();}
if(ps!=null){ps.close();}
if(con!=null){con.close();}
}
catch(Exception?e){}
}
}
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????目錄???????????0??2018-10-15?21:09??學生選課管理信息系統(tǒng)\
?????目錄???????????0??2018-10-15?21:09??學生選課管理信息系統(tǒng)\源程序和數(shù)據(jù)庫\
?????文件????????6367??2018-06-13?15:44??學生選課管理信息系統(tǒng)\源程序和數(shù)據(jù)庫\SQLQuery1.sql
?????文件????????2314??2018-06-20?23:03??學生選課管理信息系統(tǒng)\源程序和數(shù)據(jù)庫\SQLQuery120.sql
?????文件????????2144??2018-06-21?02:19??學生選課管理信息系統(tǒng)\源程序和數(shù)據(jù)庫\SQLQuery121.sql
?????文件?????????771??2018-06-21?10:46??學生選課管理信息系統(tǒng)\源程序和數(shù)據(jù)庫\SQLQuery1216.sql
?????文件????????2309??2018-06-23?01:01??學生選課管理信息系統(tǒng)\源程序和數(shù)據(jù)庫\SQLQuery2alltrigger.sql
?????文件???????17948??2018-06-22?23:32??學生選課管理信息系統(tǒng)\源程序和數(shù)據(jù)庫\SQLQueryall.sql
?????文件?????3145728??2018-06-22?21:01??學生選課管理信息系統(tǒng)\源程序和數(shù)據(jù)庫\STU.mdf
?????文件?????1048576??2018-06-22?21:01??學生選課管理信息系統(tǒng)\源程序和數(shù)據(jù)庫\STU_log.ldf
?????目錄???????????0??2018-10-15?21:09??學生選課管理信息系統(tǒng)\源程序和數(shù)據(jù)庫\學生選課管理系統(tǒng)\
?????文件?????????976??2018-06-19?11:28??學生選課管理信息系統(tǒng)\源程序和數(shù)據(jù)庫\學生選課管理系統(tǒng)\.classpath
?????文件?????????400??2018-06-14?10:11??學生選課管理信息系統(tǒng)\源程序和數(shù)據(jù)庫\學生選課管理系統(tǒng)\.project
?????目錄???????????0??2018-10-15?21:09??學生選課管理信息系統(tǒng)\源程序和數(shù)據(jù)庫\學生選課管理系統(tǒng)\.settings\
?????文件?????????592??2018-06-14?10:11??學生選課管理信息系統(tǒng)\源程序和數(shù)據(jù)庫\學生選課管理系統(tǒng)\.settings\org.eclipse.jdt.core.prefs
?????文件???????26060??2018-06-19?00:39??學生選課管理信息系統(tǒng)\源程序和數(shù)據(jù)庫\學生選課管理系統(tǒng)\1.png
?????文件??????668646??2018-06-12?19:47??學生選課管理信息系統(tǒng)\源程序和數(shù)據(jù)庫\學生選課管理系統(tǒng)\3.jpg
?????目錄???????????0??2018-10-15?21:09??學生選課管理信息系統(tǒng)\源程序和數(shù)據(jù)庫\學生選課管理系統(tǒng)\bin\
?????目錄???????????0??2018-10-15?21:09??學生選課管理信息系統(tǒng)\源程序和數(shù)據(jù)庫\學生選課管理系統(tǒng)\bin\DB\
?????文件????????2219??2018-06-19?16:07??學生選課管理信息系統(tǒng)\源程序和數(shù)據(jù)庫\學生選課管理系統(tǒng)\bin\DB\Sjk.class
?????文件????????1916??2018-06-19?17:15??學生選課管理信息系統(tǒng)\源程序和數(shù)據(jù)庫\學生選課管理系統(tǒng)\bin\DB\Sjk1.class
?????文件????????1936??2018-06-20?08:45??學生選課管理信息系統(tǒng)\源程序和數(shù)據(jù)庫\學生選課管理系統(tǒng)\bin\DB\Sjk_grxk.class
?????文件????????2240??2018-06-20?14:27??學生選課管理信息系統(tǒng)\源程序和數(shù)據(jù)庫\學生選課管理系統(tǒng)\bin\DB\Sjk_tk.class
?????文件????????2636??2018-06-21?01:32??學生選課管理信息系統(tǒng)\源程序和數(shù)據(jù)庫\學生選課管理系統(tǒng)\bin\DB\Sjk_xg.class
?????文件????????5775??2018-06-20?22:45??學生選課管理信息系統(tǒng)\源程序和數(shù)據(jù)庫\學生選課管理系統(tǒng)\bin\DB\Sjk_xk.class
?????文件????????1838??2018-06-20?01:06??學生選課管理信息系統(tǒng)\源程序和數(shù)據(jù)庫\學生選課管理系統(tǒng)\bin\DB\Sjk_xkxx.class
?????目錄???????????0??2018-10-15?21:09??學生選課管理信息系統(tǒng)\源程序和數(shù)據(jù)庫\學生選課管理系統(tǒng)\bin\Menu\
?????文件????????2677??2018-06-21?08:32??學生選課管理信息系統(tǒng)\源程序和數(shù)據(jù)庫\學生選課管理系統(tǒng)\bin\Menu\Acourse.class
?????文件????????1538??2018-06-20?18:52??學生選課管理信息系統(tǒng)\源程序和數(shù)據(jù)庫\學生選課管理系統(tǒng)\bin\Menu\Adelet.class
?????文件????????2016??2018-06-20?10:16??學生選課管理信息系統(tǒng)\源程序和數(shù)據(jù)庫\學生選課管理系統(tǒng)\bin\Menu\Astu.class
?????文件????????2186??2018-06-20?09:54??學生選課管理信息系統(tǒng)\源程序和數(shù)據(jù)庫\學生選課管理系統(tǒng)\bin\Menu\Atea.class
............此處省略51個文件信息
- 上一篇:用javafx寫的寵物商店
- 下一篇:網(wǎng)上商城
評論
共有 條評論