sql_foreign_key Stay organized with collections Save and categorize content based on your preferences.
sql_foreign_key should be avoided as of Looker 3.16.
Useforeign_key instead.
Usage
explore: explore_name { join: view_name { sql_foreign_key:A SQL clause ;; }}Hierarchy sql_foreign_key | Default Value NoneAccepts A SQL clauseSpecial Rules sql_foreign_key,foreign_key, andsql_on may not be used at the same time within the samejoin |
Definition
Thesql_foreign_key parameter specifies a SQL statement that produces a foreign key.
Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-07-22 UTC.