?? walk_in.java~1~
字號:
package bookingsystem;import java.sql.Connection;import java.sql.PreparedStatement;public class WALK_IN{ private int covers; private String arrivalDate; private String talno; Connection cn = ConnectionDB.getCon(); WALK_IN(int covers,String arrivalDate,String talno) { this.covers=covers; this.arrivalDate = arrivalDate; this.talno = talno; } public void addWalk() { String sql = "INSERT INTO WALK_IN (COVERS,ARRIVALDATE,TALNO,ISPAYBILL) VALUES ("+this.covers +",'"+this.arrivalDate+"','"+this.talno+"'"; PreparedStatement ps = cn.prepareStatement(sql); ps.executeUpdate(); }}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -