StackOverflow Questions for Tag: foreign-keys

Duc Tran
Duc Tran

Reputation: 6304

Is it fine to have foreign key as primary key?

Score: 171

Views: 316255

Answers: 9

Read More
Robert B
Robert B

Reputation: 4023

MySQL Error 1215: Cannot add foreign key constraint

Score: 402

Views: 622431

Answers: 31

Read More
Mark
Mark

Reputation: 5102

How to refresh a foreign key list in QSqlRelationalTableModel

Score: 0

Views: 21

Answers: 1

Read More
A. Romain
A. Romain

Reputation: 29

In a Star Schema, can a fact table Foreign Key be associated with multiple dimension columns?

Score: 0

Views: 56

Answers: 1

Read More
mettjus
mettjus

Reputation: 2988

foreign key to multiple tables

Score: 7

Views: 9026

Answers: 2

Read More
Minott Opdyke
Minott Opdyke

Reputation: 117

MERGE statement conflicts with foreign key constraint

Score: 8

Views: 51348

Answers: 2

Read More
Dave
Dave

Reputation: 1641

does extracting strings into another table and making the original column a foreign key save space?

Score: 14

Views: 5898

Answers: 6

Read More
NSCoder
NSCoder

Reputation: 1668

Invalid schema detected - no type or db_type element Dreamfactory

Score: 1

Views: 131

Answers: 1

Read More
user240438
user240438

Reputation:

Postgresql: Implicit lock acquisition from foreign-key constraint evaluation

Score: 5

Views: 5831

Answers: 3

Read More
E Sturzenegger
E Sturzenegger

Reputation: 159

Cannot delete or update a parent row: a foreign key constraint fails. Foreign keys exist though

Score: 0

Views: 2721

Answers: 1

Read More
Jason Rice
Jason Rice

Reputation: 544

Postgres Composite Primary Key Dependency

Score: 0

Views: 1568

Answers: 3

Read More
Kayden Miller
Kayden Miller

Reputation: 15

Entity Framework Core foreign key relationship Guid to ValueObject type

Score: 0

Views: 49

Answers: 1

Read More
Gianni Spear
Gianni Spear

Reputation: 7980

Spring boot @OneToMany and @ManyToOne don't save foreign key

Score: 0

Views: 48

Answers: 2

Read More
Justavian
Justavian

Reputation: 143

SQL Server not checking all foreign key pieces - is this normal?

Score: 4

Views: 70

Answers: 0

Read More
Josh.h
Josh.h

Reputation: 83

how to define a foreign key with pony entities

Score: 1

Views: 297

Answers: 1

Read More
Martin
Martin

Reputation: 21

How can I use ALTER TABLE to add a column that is NOT NULL and REFERENCES?

Score: 0

Views: 86

Answers: 1

Read More
user79074
user79074

Reputation: 5300

SET CONSTRAINTS ALL DEFERRED not working as expected

Score: 23

Views: 30497

Answers: 2

Read More
shahidpharm
shahidpharm

Reputation: 25

operationalError at admin/... at most 64 tables in a join

Score: -2

Views: 161

Answers: 1

Read More
pedrorezende
pedrorezende

Reputation: 288

use the returned value of the query as a foreign key without starting a new transaction or dropping foreign key constraint

Score: 14

Views: 14918

Answers: 3

Read More
Steve0
Steve0

Reputation: 2253

How do I remove a datatable from a dataset (has a bunch of relationships)

Score: 11

Views: 20733

Answers: 5

Read More
PreviousPage 1Next