Help and support on OCA OCP Java Programmer Certification Questions
1Z0-808, 1Z0-809, 1Z0-815, 1Z0-816, 1Z0-817
Moderator: admin
-
yulinxp
- Posts: 12
- Joined: Sat Dec 02, 2023 12:54 pm
-
Contact:
Post
by yulinxp »
I think the table name should be TEACHER
Code: Select all
PreparedStatement insertPS
= c.prepareStatement("insert into SUBJECT (NAME, TID) VALUES (?, ?)");
-
admin
- Site Admin
- Posts: 10066
- Joined: Fri Sep 10, 2010 9:26 pm
-
Contact:
Post
by admin »
Right. Fixed.
thank you for your feedback!
If you like our products and services, please help us by posting your
review here.
-
marpiva
- Posts: 1
- Joined: Thu Feb 22, 2024 8:29 am
-
Contact:
Post
by marpiva »
So the code reads and writes to the same table? I'm not sure that the fix is good.
-
admin
- Site Admin
- Posts: 10066
- Joined: Fri Sep 10, 2010 9:26 pm
-
Contact:
Post
by admin »
That is not an issue. It is possible to read and write from/to the same table.
If you like our products and services, please help us by posting your
review here.
Users browsing this forum: No registered users and 224 guests