SlideShare una empresa de Scribd logo
1 de 19
資料庫期末專題-高鐵訂票系統
                  第八組 SQL
               494512102-張逸豪
               494512059-孫于婷
               494512217-吳則漢




                     1         Presented By SQL Team.
2008/1/7
架設環境
           WindowsXP IIS
     

           SQLserver2005
     

           Visual Studio 2005
     

           ASP.NET
     

           JAVA JDBC
     




                                2   Presented By SQL Team.
2008/1/7
Schema




             3      Presented By SQL Team.
2008/1/7
E-R modle
                                                   cus_emai l
                                                                                                                                      trai n_ dest
                           `` cus_ SSI D
                                                                      reservati on_N o                           dep_ti me



                                 `
        cus_name
                                                                                                                                                 trai n_dep
                                                                                                    trai n_N o
                                                                               cus_ date

   cus_ti me


                                         customer                                                                            trai n
    ti ckets




                                                                                       mappi ng
                                            booki ng
     reservati on_ N o



                                                                                                                         mappi ng
   trai n_ N o


                                         seat_i nf o
                                                                                       trai n_N o
 seat_N o


                                                                                                                       cancel _seat                           cus_ name
                                                                                   seat_N o
        carri age_N o


                         seat_dep                               seat_ dest
                                                                                           carri age_N o
                                            seat_ date




                                                                                                           seat_ dep                                 seat_dest
                                                                                                                          seat_date


                                ci ty _name




                                                                   state_ tabl e
                                    ci ty _N o                                     4                                                        Presented By SQL Team.
2008/1/7
系統流程圖




             5     Presented By SQL Team.
2008/1/7
功能列表
                 後端程式
  前端程式
                     訂票
       訂票
                     刪票
       退票
       查看乘車率         訂票資料輸出
                     查詢買票記錄
       看時刻表
       查詢買票記錄        文字檔資料匯入
       查看退票紀錄        查看當天班次乘車人數


                          取消的座位均可再定
                 6          Presented By SQL Team.
2008/1/7
前端程式

             7    Presented By SQL Team.
2008/1/7
搭乘班次




            8     Presented By SQL Team.
2008/1/7
插入新資料




             9     Presented By SQL Team.
2008/1/7
刪除全部




            10    Presented By SQL Team.
2008/1/7
刪除部分




            11    Presented By SQL Team.
2008/1/7
後端程式

             12   Presented By SQL Team.
2008/1/7
找空位
           trainSet = train.executeQuery(“SELECT *
           FROM train WHERE train_No = ”+
           Integer.parseInt(tr_no1.getText()) + “ AND [” +
           d + “] = ” + t1+ “ AND [” + s + “] = ” + t2 + “ ”);
           新增資料
           executeUpdate(quot;INSERT INTO seat_info
           (reservation_No,train_No,carriage_No,seat_
           No,seat_date,seat_dep,seat_dest) VALUES
           (“+ number
           + quot;,”+ Integer.parseInt(tr_no1.getText()) + quot;,”+
           carriage+ quot;,”+ sno+ quot;,„”+ date1.getText() + quot;',quot;
           + d + quot;,quot; + s + quot;)quot;);

                                  13                  Presented By SQL Team.
2008/1/7
取得座位
           st1 = s1.executeQuery(“SELECT top 1
     

           carriage_No,seat_No FROM seat_info WHERE
           train_No = ” + train+ “ AND seat_date = „” +
           date + “‟ AND seat_dep < ”+des+“ AND
           seat_dest > ”+dep+“ ORDER BY carriage_No
           desc,seat_No desc”);// 南下

           st2 = s2.executeQuery(quot;SELECT top 1
     

           carriage_No,seat_No FROM cancel_seat
           WHERE train_No = quot; + train+ quot; AND seat_date =
           'quot; + date + quot;'AND seat_dep < quot;+des+quot; AND
           seat_dest > quot;+dep+quot; ORDER BY carriage_No
           asc,seat_No ascquot;);// 南下
                                14               Presented By SQL Team.
2008/1/7
查詢
     rt = destmt2.executeQuery(quot;SELECT *
        FROM seat_info WHERE reservation_No
        in (SELECT reservation_No FROM
        customer WHERE reservation_No =
        quot;+Integer.parseInt(reno1.getText()) + quot;
        AND cus_SSID = 'quot;+ ssid1.getText() + quot;')
        ORDER BY carriage_No asc,seat_No
        ascquot;);

                          15              Presented By SQL Team.
2008/1/7
取消訂票
      rs1 = destmt1.executeQuery(quot;SELECT top 1 * from
        seat_info seat_info where reservation_No = quot;+
        Integer.parseInt(reno1.getText()) + quot; ORDER BY
        carriage_No desc,seat_No descquot;);

      insert.executeUpdate(quot;INSERT INTO cancel_seat
        (cus_name,train_No,carriage_No,seat_No,seat_d
        ate,seat_dep,seat_dest) VALUES
        (quot;+rs1.getString(1)+quot;,” + rs1.getInt(2) + quot;,”+
        rs1.getInt(3) + quot;,”+ rs1.getInt(4) + quot;,„”+
        rs1.getString(5) + quot;',quot; + rs1.getInt(6) + quot; ,quot; +
        rs1.getInt(7) + quot;)quot;);

      刪掉原本座位省略
                              16                 Presented By SQL Team.
2008/1/7
Happy DEMO Time
                just for us




           17     Presented By SQL Team.
2008/1/7
未來展望
           網頁美化
     

           加入更多人性化的功能
     

           管理者介面加入Thread管理
     




                             2008 SQL
           Team
                     18            Presented By SQL Team.
2008/1/7
踹踹看
           http://kareneen.myftp.org/index.aspx
   




                             19             Presented By SQL Team.
2008/1/7

Más contenido relacionado

La actualidad más candente

Bhookampam 01-02
Bhookampam 01-02Bhookampam 01-02
Bhookampam 01-02venkatesha9
 
Dukaa naalu 01-02
Dukaa naalu 01-02Dukaa naalu 01-02
Dukaa naalu 01-02venkatesha9
 
第七組 智慧停車系統
第七組 智慧停車系統第七組 智慧停車系統
第七組 智慧停車系統CCUMIS
 
Cheera ka t-tu-choodu
Cheera ka t-tu-chooduCheera ka t-tu-choodu
Cheera ka t-tu-chooduvenkatesha9
 
Allari atta-01-03
Allari atta-01-03Allari atta-01-03
Allari atta-01-03venkatesha9
 
Rare desi.com.menatta (img)
Rare desi.com.menatta (img)Rare desi.com.menatta (img)
Rare desi.com.menatta (img)raredesiwebsite
 
CEO-033-平衡計分卡與策略地圖
CEO-033-平衡計分卡與策略地圖CEO-033-平衡計分卡與策略地圖
CEO-033-平衡計分卡與策略地圖handbook
 
HR-061-人力資源管理理論與實務Good
HR-061-人力資源管理理論與實務GoodHR-061-人力資源管理理論與實務Good
HR-061-人力資源管理理論與實務Goodhandbook
 
023 vimtamogudu
023 vimtamogudu023 vimtamogudu
023 vimtamoguduHari99
 
CRE-006-水平思考法
CRE-006-水平思考法CRE-006-水平思考法
CRE-006-水平思考法handbook
 
แผนการจัดกิจกรรมแนะแนว ตามหลักสูตร 2551 ชั้น ม 1 สำนักวิชาการฯ-2555
แผนการจัดกิจกรรมแนะแนว ตามหลักสูตร 2551 ชั้น ม 1 สำนักวิชาการฯ-2555แผนการจัดกิจกรรมแนะแนว ตามหลักสูตร 2551 ชั้น ม 1 สำนักวิชาการฯ-2555
แผนการจัดกิจกรรมแนะแนว ตามหลักสูตร 2551 ชั้น ม 1 สำนักวิชาการฯ-2555Ict Krutao
 
7 шагов от ТЗ до брендбука
7 шагов от ТЗ до брендбука7 шагов от ТЗ до брендбука
7 шагов от ТЗ до брендбукаAngel Relations Group
 

La actualidad más candente (20)

College raging2
College raging2College raging2
College raging2
 
P4 lesson 13
P4 lesson 13P4 lesson 13
P4 lesson 13
 
Bhookampam 01-02
Bhookampam 01-02Bhookampam 01-02
Bhookampam 01-02
 
Bhuvana 01
Bhuvana 01Bhuvana 01
Bhuvana 01
 
Dukaa naalu 01-02
Dukaa naalu 01-02Dukaa naalu 01-02
Dukaa naalu 01-02
 
第七組 智慧停車系統
第七組 智慧停車系統第七組 智慧停車系統
第七組 智慧停車系統
 
Cuckold
CuckoldCuckold
Cuckold
 
Sogasu
SogasuSogasu
Sogasu
 
Cheera ka t-tu-choodu
Cheera ka t-tu-chooduCheera ka t-tu-choodu
Cheera ka t-tu-choodu
 
Allari atta-01-03
Allari atta-01-03Allari atta-01-03
Allari atta-01-03
 
Rare desi.com.menatta (img)
Rare desi.com.menatta (img)Rare desi.com.menatta (img)
Rare desi.com.menatta (img)
 
Okkasaari
OkkasaariOkkasaari
Okkasaari
 
CEO-033-平衡計分卡與策略地圖
CEO-033-平衡計分卡與策略地圖CEO-033-平衡計分卡與策略地圖
CEO-033-平衡計分卡與策略地圖
 
HR-061-人力資源管理理論與實務Good
HR-061-人力資源管理理論與實務GoodHR-061-人力資源管理理論與實務Good
HR-061-人力資源管理理論與實務Good
 
023 vimtamogudu
023 vimtamogudu023 vimtamogudu
023 vimtamogudu
 
CRE-006-水平思考法
CRE-006-水平思考法CRE-006-水平思考法
CRE-006-水平思考法
 
Duduku 01-02
Duduku 01-02Duduku 01-02
Duduku 01-02
 
Atadi katha-01
Atadi katha-01Atadi katha-01
Atadi katha-01
 
แผนการจัดกิจกรรมแนะแนว ตามหลักสูตร 2551 ชั้น ม 1 สำนักวิชาการฯ-2555
แผนการจัดกิจกรรมแนะแนว ตามหลักสูตร 2551 ชั้น ม 1 สำนักวิชาการฯ-2555แผนการจัดกิจกรรมแนะแนว ตามหลักสูตร 2551 ชั้น ม 1 สำนักวิชาการฯ-2555
แผนการจัดกิจกรรมแนะแนว ตามหลักสูตร 2551 ชั้น ม 1 สำนักวิชาการฯ-2555
 
7 шагов от ТЗ до брендбука
7 шагов от ТЗ до брендбука7 шагов от ТЗ до брендбука
7 шагов от ТЗ до брендбука
 

Último

08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking MenDelhi Call girls
 
A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?Igalia
 
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEarley Information Science
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreternaman860154
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonAnna Loughnan Colquhoun
 
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptxFactors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptxKatpro Technologies
 
CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Servicegiselly40
 
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountBreaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountPuma Security, LLC
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationSafe Software
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Drew Madelung
 
Slack Application Development 101 Slides
Slack Application Development 101 SlidesSlack Application Development 101 Slides
Slack Application Development 101 Slidespraypatel2
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024Rafal Los
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsEnterprise Knowledge
 
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)wesley chun
 
A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024Results
 
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Igalia
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024The Digital Insurer
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerThousandEyes
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdfhans926745
 
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfThe Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfEnterprise Knowledge
 

Último (20)

08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men
 
A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?
 
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreter
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
 
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptxFactors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
 
CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Service
 
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountBreaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path Mount
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
 
Slack Application Development 101 Slides
Slack Application Development 101 SlidesSlack Application Development 101 Slides
Slack Application Development 101 Slides
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI Solutions
 
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)
 
A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024
 
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf
 
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfThe Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
 

高鐵訂票系統報告

  • 1. 資料庫期末專題-高鐵訂票系統 第八組 SQL 494512102-張逸豪 494512059-孫于婷 494512217-吳則漢 1 Presented By SQL Team. 2008/1/7
  • 2. 架設環境 WindowsXP IIS  SQLserver2005  Visual Studio 2005  ASP.NET  JAVA JDBC  2 Presented By SQL Team. 2008/1/7
  • 3. Schema 3 Presented By SQL Team. 2008/1/7
  • 4. E-R modle cus_emai l trai n_ dest `` cus_ SSI D reservati on_N o dep_ti me ` cus_name trai n_dep trai n_N o cus_ date cus_ti me customer trai n ti ckets mappi ng booki ng reservati on_ N o mappi ng trai n_ N o seat_i nf o trai n_N o seat_N o cancel _seat cus_ name seat_N o carri age_N o seat_dep seat_ dest carri age_N o seat_ date seat_ dep seat_dest seat_date ci ty _name state_ tabl e ci ty _N o 4 Presented By SQL Team. 2008/1/7
  • 5. 系統流程圖 5 Presented By SQL Team. 2008/1/7
  • 6. 功能列表 後端程式 前端程式 訂票 訂票 刪票 退票 查看乘車率 訂票資料輸出 查詢買票記錄 看時刻表 查詢買票記錄 文字檔資料匯入 查看退票紀錄 查看當天班次乘車人數 取消的座位均可再定 6 Presented By SQL Team. 2008/1/7
  • 7. 前端程式 7 Presented By SQL Team. 2008/1/7
  • 8. 搭乘班次 8 Presented By SQL Team. 2008/1/7
  • 9. 插入新資料 9 Presented By SQL Team. 2008/1/7
  • 10. 刪除全部 10 Presented By SQL Team. 2008/1/7
  • 11. 刪除部分 11 Presented By SQL Team. 2008/1/7
  • 12. 後端程式 12 Presented By SQL Team. 2008/1/7
  • 13. 找空位 trainSet = train.executeQuery(“SELECT * FROM train WHERE train_No = ”+ Integer.parseInt(tr_no1.getText()) + “ AND [” + d + “] = ” + t1+ “ AND [” + s + “] = ” + t2 + “ ”); 新增資料 executeUpdate(quot;INSERT INTO seat_info (reservation_No,train_No,carriage_No,seat_ No,seat_date,seat_dep,seat_dest) VALUES (“+ number + quot;,”+ Integer.parseInt(tr_no1.getText()) + quot;,”+ carriage+ quot;,”+ sno+ quot;,„”+ date1.getText() + quot;',quot; + d + quot;,quot; + s + quot;)quot;); 13 Presented By SQL Team. 2008/1/7
  • 14. 取得座位 st1 = s1.executeQuery(“SELECT top 1  carriage_No,seat_No FROM seat_info WHERE train_No = ” + train+ “ AND seat_date = „” + date + “‟ AND seat_dep < ”+des+“ AND seat_dest > ”+dep+“ ORDER BY carriage_No desc,seat_No desc”);// 南下 st2 = s2.executeQuery(quot;SELECT top 1  carriage_No,seat_No FROM cancel_seat WHERE train_No = quot; + train+ quot; AND seat_date = 'quot; + date + quot;'AND seat_dep < quot;+des+quot; AND seat_dest > quot;+dep+quot; ORDER BY carriage_No asc,seat_No ascquot;);// 南下 14 Presented By SQL Team. 2008/1/7
  • 15. 查詢 rt = destmt2.executeQuery(quot;SELECT * FROM seat_info WHERE reservation_No in (SELECT reservation_No FROM customer WHERE reservation_No = quot;+Integer.parseInt(reno1.getText()) + quot; AND cus_SSID = 'quot;+ ssid1.getText() + quot;') ORDER BY carriage_No asc,seat_No ascquot;); 15 Presented By SQL Team. 2008/1/7
  • 16. 取消訂票 rs1 = destmt1.executeQuery(quot;SELECT top 1 * from seat_info seat_info where reservation_No = quot;+ Integer.parseInt(reno1.getText()) + quot; ORDER BY carriage_No desc,seat_No descquot;); insert.executeUpdate(quot;INSERT INTO cancel_seat (cus_name,train_No,carriage_No,seat_No,seat_d ate,seat_dep,seat_dest) VALUES (quot;+rs1.getString(1)+quot;,” + rs1.getInt(2) + quot;,”+ rs1.getInt(3) + quot;,”+ rs1.getInt(4) + quot;,„”+ rs1.getString(5) + quot;',quot; + rs1.getInt(6) + quot; ,quot; + rs1.getInt(7) + quot;)quot;); 刪掉原本座位省略 16 Presented By SQL Team. 2008/1/7
  • 17. Happy DEMO Time just for us 17 Presented By SQL Team. 2008/1/7
  • 18. 未來展望 網頁美化  加入更多人性化的功能  管理者介面加入Thread管理  2008 SQL Team 18 Presented By SQL Team. 2008/1/7
  • 19. 踹踹看 http://kareneen.myftp.org/index.aspx  19 Presented By SQL Team. 2008/1/7