The update code block, as it is, runs without errors and updates as intended. The finally block - I see your point on that one, edited those in.
Our coursework didn't cover prepared statements,...
Type: Posts; User: sevenday
The update code block, as it is, runs without errors and updates as intended. The finally block - I see your point on that one, edited those in.
Our coursework didn't cover prepared statements,...
EDIT: I fixed the delete portion of it. Whew. Still working on the update. Below is revised relevant part of the code; above is the full class to show the parts surrounding the snippet.
...
I know how to get user input and add it to a database or print it back out to the user. The problem is how to pick ONE entry out of a database, based on user input, and delete or update it. I need...
That's not the problem for me. I'm just having trouble picking out how to take user input (in this case an integer, studentID) and using that to select a database row and delete it. I know this...
It was a pastebin link... it was the code. But fine... think query is okay now but need to go to delete. It needs to just delete a user-specified student ID rather than asking first for...
Okay, I fixed the constructor problem, but ran into a new one. My query is not working properly. After speaking to the mentor, she indicated that query should be by ID and/or "query all." This is...
Hi, in the code snippet above, the if/else sequence where "st = new Undergraduate();" is listed, each one comes up red in Netbeans. Alt-entering gets the following message: "constructor Undergraduate...
I'm in a Java programming course in college. For some reason, for a noncertified course, they want us to do this big project that includes building a student records management... thing. I think I...
Hi guys. Mostly just here to get some help with a stupidly large project for a college course, but I might as well learn while I'm here. :)