Multiple choice technology programming languages

Creating a foreign-key constraint between columns of two tables defined with two different datatypes will produce an error.

  1. True

  2. False

Reveal answer Fill a bubble to check yourself
A Correct answer
Explanation

In relational databases like Oracle or SQL Server, referencing a primary key with a foreign key requires the columns to have matching or compatible datatypes. Creating a constraint between different incompatible datatypes results in a compilation error.