am a newbie to java. I want to create a table in MYSQL and insert images into it.I have to write code in java to insert the images. can anyone tell me how to give开发者_Python百科 connectivity between mySQL and java code. Can u suggest some materials for jdbc odbc connectivity.
Don't even think about mentioning ODBC when you're talking Java. JDBC-ODBC bridges were useful once, when we didn't have proper drivers but they should be considered a crime against humanity nowadays :-)
What you want is a type-4 (pure Java) JDBC driver and the "official" one is MySQL Connector/J.
That page also has links to a short JDBC Basics course and a more in-depth one, for your education.
精彩评论