How to create relationship between two tables with UCanAccess?

Viktor Verebélyi

I create two tables with relationship between them with UCanAccess. But it doesnt create the relationship. Why? What is wrong? How can i solve this problem?

statement.execute("CREATE TABLE example1 (ExId LONG PRIMARY KEY, Title TEXT) ");
statement.execute("CREATE TABLE example2 (Id COUNTER PRIMARY KEY," + 
                " ExId LONG REFERENCES example1(ExId), Description TEXT)");
jamadei

Nothing bad in your DDL statement, but UCanAccess has some limits in the DDL support. That it can't create foreign keys is one of those limits. Currently UCanAccess can create primary key and indexes(unique or not). It can obviously read and apply all the existent foreign key constraints. Actually, the underlying library jackcess can read foreign key contraints but it can't still create them. I hope to be able to enhance the DDL support in the future.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

SQLExpress create relationship between two tables

From Dev

How to check eloquent relationship between two tables?

From Dev

How to set relationship between two tables in SQLAlchemy?

From Dev

How to create a new table for relationship between these tables

From Dev

How to create relationship between two tables which have no same field as foreign key and primary key

From Dev

Relationship between two tables, SQLAlchemy

From Dev

Relation Between Two Tables: make relationship between two tables

From Dev

How to create a relationship between two nodes with common properties?

From Dev

How to create two relationship between nodes in graph DB

From Dev

How to create a relationship between two nodes with common properties?

From Dev

Model a relationship between two fact tables

From Dev

laravel 5 insert relationship between two tables

From Dev

Relationship between tables with two foreign keys

From Dev

Want to keep relationship between two tables in MySQL

From Dev

Make a relationship between two tables though another

From Dev

laravel 5 insert relationship between two tables

From Dev

Best way to create relationship between multiple tables

From Dev

Create a relationship between tables based on concatenated fields

From Dev

Is it possible to create a foreign key relationship between two tables on String/varchar type columns in Laravel?

From Dev

how to create a parent child relation between two tables mysql

From Dev

How to create subquery with Laravel Eloquent Between two tables

From Dev

Many-to-Many Relationship between two tables in two different databases

From Dev

Laravel relationship between two tables with two foreign keys

From Dev

How to order by between two tables?

From Dev

flask-sqlalchemy multiple relationship types between two tables

From Dev

Salesforce API: Is there a way to determine the relationship between two random tables

From Dev

Mysql query to search between two tables with no direct relationship

From Dev

Laravel Relationship Between Tables

From Dev

Mysql relationship between tables

Related Related

  1. 1

    SQLExpress create relationship between two tables

  2. 2

    How to check eloquent relationship between two tables?

  3. 3

    How to set relationship between two tables in SQLAlchemy?

  4. 4

    How to create a new table for relationship between these tables

  5. 5

    How to create relationship between two tables which have no same field as foreign key and primary key

  6. 6

    Relationship between two tables, SQLAlchemy

  7. 7

    Relation Between Two Tables: make relationship between two tables

  8. 8

    How to create a relationship between two nodes with common properties?

  9. 9

    How to create two relationship between nodes in graph DB

  10. 10

    How to create a relationship between two nodes with common properties?

  11. 11

    Model a relationship between two fact tables

  12. 12

    laravel 5 insert relationship between two tables

  13. 13

    Relationship between tables with two foreign keys

  14. 14

    Want to keep relationship between two tables in MySQL

  15. 15

    Make a relationship between two tables though another

  16. 16

    laravel 5 insert relationship between two tables

  17. 17

    Best way to create relationship between multiple tables

  18. 18

    Create a relationship between tables based on concatenated fields

  19. 19

    Is it possible to create a foreign key relationship between two tables on String/varchar type columns in Laravel?

  20. 20

    how to create a parent child relation between two tables mysql

  21. 21

    How to create subquery with Laravel Eloquent Between two tables

  22. 22

    Many-to-Many Relationship between two tables in two different databases

  23. 23

    Laravel relationship between two tables with two foreign keys

  24. 24

    How to order by between two tables?

  25. 25

    flask-sqlalchemy multiple relationship types between two tables

  26. 26

    Salesforce API: Is there a way to determine the relationship between two random tables

  27. 27

    Mysql query to search between two tables with no direct relationship

  28. 28

    Laravel Relationship Between Tables

  29. 29

    Mysql relationship between tables

HotTag

Archive