-
Problems with JDBC and Referential Integrity
Wandering if anyone can advise me, I am a bit stuck. I have been working on
a project using JDBC
to connect to an access Database. This is all fine except when I enforce
referential Integrity! It will
not allow me to enter data into one table at a time as all the primary keys
need to be updated at
the same time. I thought that the Commit and Rollback methods would do the
job but this is also
sequential. Does anyone know how to get around this.
-
Re: Problems with JDBC and Referential Integrity
whe retreiving or updating remember to not use the
select * from table1
and when updating the fields update them as field1, field 2 etc..
if you are updating in a batch pre-select the batch first.--ae
"Claire" <rvzec_claire@yahoo.co.uk> wrote:
>
>Wandering if anyone can advise me, I am a bit stuck. I have been working
on
>a project using JDBC
>to connect to an access Database. This is all fine except when I enforce
>referential Integrity! It will
>not allow me to enter data into one table at a time as all the primary keys
>need to be updated at
>the same time. I thought that the Commit and Rollback methods would do the
>job but this is also
>sequential. Does anyone know how to get around this.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
Forum Rules
|
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL
|
Bookmarks