如何通过java中的sql将DateButton的值插入表中

时间:2018-03-22 08:38:05

标签: java

String sql = "INSERT INTO Buses ( RegNo,BusNo, Model, Capacity, DatePurchased,InsuranceStatus,DateInsured,ExpiryDate) VALUES ('"
        + txtRegNo.getText() + "', '"
        + txtBusNo.getText() + "', '"
        + txtModel.getText() + "', '"
        + txtCapacity.getText() + "', '"
        + date_bought.getText() + "', '"
        + txtIStatus.getText() + "', '"
        + date_ins.getText() + "', '"
        + date_expiry.getText() + "')";

0 个答案:

没有答案