Author | Message |
---|---|
mrighetti
Posts: 20
|
Posted 11:25 May 18, 2011 |
Eclipse gives the option of importing either "java.sql.Statement" or "com.mysql.jdbc.Statement". In terms of code re-use, we should use the more general import, but since this is a database specific project, the more explicit import gives clearer documentation.
|
cysun
Posts: 2935
|
Posted 11:30 May 18, 2011 |
You should always import the one in java.sql. The main advantage of having JDBC in the first place is that your code doesn't need to depend on DBMS-specific API. |