Update Client.java

This commit is contained in:
xixu-me committed 2024-07-02 20:32:20 +08:00
1 parent 96f85636c2
commit f5f4cae95a
1 file changed
+2 -2
+2 -2
View File
@@ -307,7 +307,7 @@ public class Client {
ps.setString(2, title);
int affectedRows = ps.executeUpdate();
if (affectedRows > 0)
System.out.println("Update successful!");
System.out.println("Modify successfully!");
else
System.out.println("No record found to update.");
}
@@ -325,7 +325,7 @@ public class Client {
ps.setString(2, title);
int affectedRows = ps.executeUpdate();
if (affectedRows > 0) {
System.out.println("Price update successful!");
System.out.println("Modify successfully!");
} else {
System.out.println("No record found to update price!");
}