Hi FOlks,
More than a
JDBC q, this is really a SQL question. I hope someone out there can help me..
I have a database table, say customers, with cus_number, cus_name, cus_birthdate and cus_ssn
Now, i get a flat file with the the cus_number and cus_ssn on it. Have a
java program that reads it, and then I need to populate the ssn field if the cus_number is already in the database.
Also need to be able to ignore if a cus_number is not found. FYI, i'm using mysql on winnt and I already have the JDBC drivers installed and everything and I'm able to access the db from the java program..
What i really need is help in formatting the update statement to update only one field of the db without affecting the others AND on how to catch a not-found cus_number
Thanks !!