foreign-keys
How to set up a table with a recursive foreign key and a relationship declaratively in SQLAlchemy?
Suppose I have a table \"nodes\" where I store a tree. Each node has a primary key id and a column parent_id.[详细]
2023-03-30 22:35 分类:问答JPA/Hibernate, @OneToMany and constraints (Oracle)
I have the following scenario: @Entity class A { @Id @GeneratedValue private long dbId; @OneToMany ( cascade = CascadeType.ALL )[详细]
2023-03-30 15:49 分类:问答Postgres: n:m intermediate table with type
I have a table called \"Tag\" which consists of an Id, Name and Description column. Now lets say I have the tables Character (C), Movie (M), Series (S) etc..[详细]
2023-03-30 12:47 分类:问答Can't create table (errno: 150) InnoDB adding foreign key constraints
Really hate to use other people\'s time, but it seems the problem is just not going away. I considered all recommendations at http://verysimple.com/2006/10/22/mysql-error-number-1005-cant-create-tabl[详细]
2023-03-30 07:13 分类:问答MySQL Help Can't delete row (errno: 150) foreign key constraint
Uppon trying to delete a record in one of my tables I got the following. #1451 - Cannot delete or update a parent row: a foreign key constraint fails (`pasremotedb`.`plans`, CONSTRAINT `FK_plans` FOR[详细]
2023-03-30 06:40 分类:问答Object Generated From Entity Model Does Not Create Nullable Foreign Keys
I have noticed some strange behavior when it comes to nullable foreign keys in my database. I have just started playing with the entity framework so I\'m probably doing something wrong, but I cannot f[详细]
2023-03-30 03:36 分类:问答InnoDB relationships: one-way or two-way?
I\'ve decided for the first time to switch to InnoDB and experiment with foreign keys and other InnoDB features.[详细]
2023-03-30 00:10 分类:问答if I have a complex primary key, is it possible to create foreign key only for one column of it?
I have this: ID1 INTEGER 开发者_JAVA百科PRI ID2 INTEGER PRI NAME VARCHAR now I need to: ID1_REF INTEGER REFERENCE TO ID1[详细]
2023-03-29 12:39 分类:问答Why is my MySQL server not recognizing foreign key relations?
Well I\'ve gotten 100+ answers to my questions on Stack Overflow, but it\'s time I finally registered and posted my first question![详细]
2023-03-29 08:59 分类:问答Foreign key in mysql table- is the presence of target data necessary?
I have 2 tables TableA(id_A, name_A, info_A) tableB(id_B, A_id, some_data) foreign key(A_id) references tableA(id_A)[详细]
2023-03-29 06:55 分类:问答