Originally posted by mark stone:
this may not be scjp related but certainly at one point or other you would encounter this.
i was asked (interview) about a sql operation done via java. and i had to say i don't know.
please guide me to a simple example where i can write a simple 5 line program that can interact with a Database server to send and retrive a record or create a record. (i was told that this program is 5 lines).
web links, discussion forums, (on this ranch as well), or any other info please let me know. if this offtopic please move this thread to the relevant group. but in any case this is my email address and you can write to me. markstone23@yahoo.com
I think you'd probably have more success getting some good responses if you were to post this in the
JDBC forum. Perhaps some friendly bartender could move it for you.
If not, however, I have one question for you. You say that you're supposed to connect to a database server, right? Is this a remote database that you need to get to (and if so, how), or is it a local database? If it's local, it's simple, but if the database is remote, you're going to have to come up with some way to communicate with it which might be a little more complicated.
Corey