Re: JDBC and Access relationships




"Sharp Tool" wrote...

> I'm using JDBC to connect to an Access database.

> Do I have to set up relationships before I do joins?

No, you don't.

> I know you have to do it when you do joins in Access.

No, you don't.

> Does this change when your using JDBC?

No, it doesn't.

> Do you write code to do relationships?

You can do that through JDBC by using standard SQL statements for creating
foreign key constraints. If it's *necessary* is another question.

> If you have to do relationships then it seems Access is
> kinda sucky to use JDBC.

As would be with any relational database in that case.

I think you may have confused the database "tool" which is MS Access, with
the actual database engine, which by default is Jet.

The "tool" MS Access can be seen as a fancy graphical interface to the
database, but underneath it, it's a very "simple" database engine, which
though complies to much of the SQL-92 standard syntax.

In that sense, your "problem" with "doing relationships" would exist with
most databases, not only Access/Jet.

// Bjorn A


.



Relevant Pages

  • Re: Mixing P/R philosophy with OO (within J2EE).
    ... I have observed the work of literally hundreds of Java developers. ... Treating a database like a mere "persistence storage mechanisms" is on ... JDBC - Never before in history were so many database API's ... Topmind, if you're reading this, isn't this a good example of OOP? ...
    (comp.object)
  • Re: What does everyone else do for graphically displaying data?
    ... JDBC API reference cover to cover a couple of times, ... you bind a data grid to a database table so that when you edit the ... put all JDBC code in the Model classes. ... Use something like Hibernate. ...
    (comp.lang.java.databases)
  • Re: how to practice JDBC programming?
    ... I am reading a book to learn JDBC. ... I do have a Oracle expression version installed in my Window XP. ... Oracle is one of the top database systems out there, and Oracle XE is supposed to be very, very easy to use. ... If I'm not mistaken, a sample schema is also installed, (maybe it's an install-option), and for practicing purposes, like jdbc training, it'd be very convenient. ...
    (comp.lang.java.programmer)
  • Re: What about a DBMS that wont be platform-specific
    ... This would be my first time doing this and the database is being ... There is no JDBC driver for Access. ... In Java, you can use databases which provide only ODBC drivers through the JDBC-ODBC ... Sun includes a JDBC-ODBC bridge with their standard distro, ...
    (comp.lang.java.databases)
  • Re: Problem with JDBC MSSQL
    ... >> JDBC from an applet. ... > classes and you can easily use another persistent storage instead of JDBC. ... > JDBC driver talks to the database. ...
    (comp.lang.java.databases)