freepeople性欧美熟妇, 色戒完整版无删减158分钟hd, 无码精品国产vα在线观看DVD, 丰满少妇伦精品无码专区在线观看,艾栗栗与纹身男宾馆3p50分钟,国产AV片在线观看,黑人与美女高潮,18岁女RAPPERDISSSUBS,国产手机在机看影片

正文內(nèi)容

數(shù)據(jù)庫(kù)課程設(shè)計(jì)報(bào)告學(xué)生信息管理系統(tǒng)sql-java(編輯修改稿)

2024-08-31 02:02 本頁(yè)面
 

【文章內(nèi)容簡(jiǎn)介】 ==系統(tǒng)說(shuō)明書===============================================================建立數(shù)據(jù)庫(kù) StudentDatabase 的 SQL Server 語(yǔ)句:數(shù)據(jù)庫(kù)StudentDatabase數(shù)據(jù)表建立數(shù)據(jù)庫(kù) StudentDatabase 的 SQL Server 語(yǔ)句:數(shù)據(jù)庫(kù)StudentDatabase部分?jǐn)?shù)據(jù)表(表 Student Course StudentCourse)StudentCREATE TABLE Student( SNo CHAR(10) PRIMARY KEY NOT NULL, SName CHAR(20) NOT NULL, SSex CHAR(2),Sbirth CHAR(10),Sphone CHAR(11),SColl CHAR(40), NOT NULL,Snation CHAR(15), NOTNULL,Spaob CHAR(4), NOT NULL,Sbplace CHAR(10),SSgrade CHAR(4), NOTNULL,Srem CHAR(10)。CourseCREATE TABLE Course( CNo CHAR(10) PRIMARY KEY NOT NULL, CName CHAR(20) NOT NULL, CCredit INT),Cclass CHAR(4),NOTNULL,Cperiod INT(2), NOTNULL,Ces CHAR(1)。StudentCourseCREATE TABLE StudentCourse( SNo CHAR(10) NOT NULL, CNo CHAR(10) NOT NULL, Grade FLOAT, PRIMARY KEY (SNo, CNo), FOREIGN KEY (SNo) REFERENCES Student(SNo), FOREIGN KEY (CNo) REFERENCES Course(CNo))。TempStudentCourseCREATE TABLE TempStudentCourse( SNo CHAR(10) NOT NULL, CNo CHAR(10) NOT NULL, Grade FLOAT, SName CHAR(20), CName CHAR(20), PRIMARY KEY (SNo, CNo), FOREIGN KEY (SNo) REFERENCES Student(SNo), FOREIGN KEY (CNo) REFERENCES Course(CNo))。子程序JavaIDLNameDBMS 其中:Name 為模塊名稱使用 SQL Server 2022 建立數(shù)據(jù)庫(kù)的說(shuō)明如果用戶使用的是 SQL Server 2022,則只需使用 SQL Server 2022 的查詢分析器,并把在 SQL Server 2022 的查詢分析器中,運(yùn)行本書提供的建立數(shù)據(jù)庫(kù)的相應(yīng)文檔即可。運(yùn)行環(huán)境設(shè)置1. 安裝 2. 安裝 JDBC 驅(qū)動(dòng)3. 安裝 EclipseSDK 環(huán)境4. 附加數(shù)據(jù)庫(kù)5. 在 Eclipse 中導(dǎo)入程序END 添加public class add implements ActionListener, ItemListener {JLabel lb[], lable, lable1。JPanel pan[]。JComboBox cmb。JTextField tf1, tf[]。JButton bt, handin。CardLayout card。Connection con。public add() throws IOException {cmb = new JComboBox()。(this)。card = new CardLayout()。tf1 = new JTextField(10)。(false)。lable = new JLabel(現(xiàn)在進(jìn)入新增模式 )。()。//()。(new Font(華文行楷, , 30))。bt = new JButton(下一步)。(new ImageIcon())。(this)。handin = new JButton(提交)。(this)。// 以下初始化各個(gè)成員lb = new JLabel[7]。for (int i = 0。 i 。 i++) {lb[i] = new JLabel(, )。}tf = new JTextField[5]。for (int i = 0。 i 。 i++) {tf[i] = new JTextField(3)。}// 初始化 panpan = new JPanel[8]。for (int i = 0。 i 。 i++) {pan[i] = new JPanel()。}lb[0].setText(您要增加幾名學(xué)生的信息: )。lb[1].setText(請(qǐng)輸入您要增加的學(xué)生的數(shù)目: )。// 以下進(jìn)行初級(jí)設(shè)置pan[0].setLayout(card)。pan[1].setLayout(new GridLayout(4, 1, 0, 20))。pan[2].setLayout(new FlowLayout())。pan[3].setLayout(new FlowLayout())。pan[4].setLayout(new FlowLayout())。// 以下進(jìn)入正題(只增加一名)。(增加多名)。pan[2].add(lb[0])。pan[2].add(cmb)。pan[3].add(lb[1])。pan[3].add(tf1)。pan[4].add(bt)。pan[1].add(lable)。pan[1].add(pan[2])。pan[1].add(pan[3])。pan[1].add(pan[4])。lable1 = new JLabel(請(qǐng)輸入學(xué)生信息 , )。//()。(new Font(華文行楷, , 30))。lb[2].setText(學(xué)號(hào) )。lb[3].setText(姓名 )。lb[4].setText(性別)。lb[5].setText(年齡)。lb[6].setText(專業(yè))。lb[2].setSize(new Dimension(20, 10))。pan[5].setLayout(new BorderLayout())。pan[6].setLayout(new GridLayout(5, 3, 0, 50))。pan[7].setLayout(new FlowLayout())。pan[6].add(lb[2])。pan[6].add(tf[0])。pan[6].add(new JLabel( ))。pan[6].add(lb[3])。pan[6].add(tf[1])。pan[6].add(new JLabel( ))。pan[6].add(lb[4])。pan[6].add(tf[2])。pan[6].add(new JLabel( ))。pan[6].add(lb[5])。pan[6].add(tf[3])。pan[6].add(new JLabel( ))。pan[6].add(lb[6])。pan[6].add(tf[4])。pan[7].add(handin)。pan[5].add(North, lable1)。pan[5].add(Center, pan[6])。pan[5].add(South, pan[7])。//pan[0].add(card1, pan[1])。pan[0].add(card2, pan[5])。}public void actionPerformed(ActionEvent e) {// ********************************************************if (() == bt) {(pan[0], card2)。}// ********************************************************if (() == handin) {try {con = (jdbc:odbc:student,sa,)。//con= DriverManager. getConnection(jdbc:microsoft:} catch (SQLException e2) {(, 系統(tǒng)出錯(cuò) 11!!, 學(xué)生信息管理系統(tǒng),)。}String id = tf[0].getText()。String name = tf[1].getText()。String ss1 = tf[2].getText()。int ss2 = change(tf[3].getText())。String ss3 = tf[4].getText()。tf[0].setText()。tf[1].setText()。tf[2].setText()。tf[3].setText()。tf[4].setText()。try { news(id, name, ss1, ss2, ss3)。} catch (SQLException e1) {(, 操作失敗!!, 學(xué)生信息管理系統(tǒng),)。}}}// *********************************************************public void itemStateChanged(ItemEvent e) {if (() == 1) {(true)。} (false)。}// ********************************************************public void news(String id, String name, String ss1, int ss2, String ss3)throws SQLException {String sql = INSERT INTO student VALUES(?,?,?,?,?)。PreparedStatement ps = (sql)。(1, id)。(2, name)。(3, ss1)。(4, ss2)。(5, ss3)。()。()。(, 添加成功)。}//******************************************************* public int change(String s) {return ((s))。}//******************************************************* }刪除 public class delete implements ActionListener {JLabel lb[], lable, lable1。JPanel pan[]。JComboBox cmb。JTextField tf1, tf[]。JButton bt, handin。CardLayout card。Connection con。Statement s。public delete() throws IOExcepti
點(diǎn)擊復(fù)制文檔內(nèi)容
醫(yī)療健康相關(guān)推薦
文庫(kù)吧 www.dybbs8.com
備案圖片鄂ICP備17016276號(hào)-1