IntelliJ Save To Database

Published: 12 October 2019
on channel: Prof. Vanselow
920
4

void saveToDB() {
try {
System.out.println("Attempting INSERT");
String sql = "INSERT INTO Bike (Make, Handlebars, Frame, Tyres, SeatType, NumGears) "
"VALUES ('Huffy', 'Cruiser', 'Diamond', 'Fat', 'Comfort', 1);";
stmt.executeUpdate(sql);
System.out.println("INSERT Successful");
} catch (SQLException se) {
se.printStackTrace();
Alert a = new Alert(Alert.AlertType.ERROR);
a.show();
} catch (Exception e) {
e.printStackTrace();
}
}

https://www.w3schools.com/sql/sql_ins...
https://www.tutorialspoint.com/jdbc/j...


Watch video IntelliJ Save To Database online without registration, duration hours minute second in high quality. This video was added by user Prof. Vanselow 12 October 2019, don't forget to share it with your friends and acquaintances, it has been viewed on our site 92 once and liked it people.