Foreign key to another table

BigQueryDb2 (LUW)DerbyH2MariaDBMySQLOracle DBPostgreSQLSQL ServerSQLite200720092011201320152017201920212023⚠ 3.31.0 - 3.50.0e⊘ 2008R2 - 2022✓ 12 - 17✓ 11gR1 - 23.9⚠ 9.0 - 9.4.0a⚡ 5.7 - 8.4ab⚠ 10.5 - 12.0.2a⚡ 10.2 - 10.4c⚡ 10.0.10 - 10.1a⚡ 5.2 - 5.5.23✓ 1.4.191 - 2.3.232⚠ 10.15.1.3 - 10.17.1.0d✓ 9.7 - 12.1.2
  1. Foreign keys in the column definition are parsed but ignored
  2. Only with storage option stored
  3. As table constraint, not inside the column definition
  4. Requires explicit data type: col_name integer generated always as …
  5. Only without explicit data type: col_name integer generated always as …