About 255,000 results
Open links in new tab
  1. DECLARE VARIABLE - Databricks on AWS

    Oct 1, 2025 · Learn how to use the DECLARE VARIABLE syntax of the SQL language in Databricks SQL and Databricks Runtime.

  2. Assign a variable a dynamic value in SQL in Databricks / Spark

    Dec 11, 2019 · I feel like I must be missing something obvious here, but I can't seem to dynamically set a variable value in Spark SQL. Let's say I have two tables, tableSrc and tableBuilder, and I'm …

  3. DECLARE VARIABLE - Azure Databricks - Databricks SQL | Microsoft …

    Oct 1, 2025 · Learn how to use the DECLARE VARIABLE syntax of the SQL language in Databricks SQL and Databricks Runtime.

  4. SQL Variables in Databricks | by Ryan Chynoweth | Medium

    Oct 6, 2023 · Last December we published a blog providing an overview of Converting Stored Procedures to Databricks. In that blog we showed that users could set and use variables with the …

  5. How to set a variable and use it in a SQL query - Databricks

    Nov 15, 2022 · Solved: I want to define a variable and use it in a query, like below: %sql SET database_name = "marketing"; SHOW TABLES in - 22301

  6. How to use DECLARE variable in Databricks? - CastorDoc

    Learn how to effectively use the DECLARE variable in Databricks with our comprehensive guide.

  7. Variables - Azure Databricks - Databricks SQL | Microsoft Learn

    Mar 14, 2025 · Variables are typed and schema qualified objects which store values that are private to a session. In Azure Databricks variables are temporary and declared within a session using the …

  8. How to declare variables in Databricks SQL editor

    Jun 13, 2023 · Need help to know how to declare a variable in Databricks SQL Editor. and also if we need to declare multiple variables then what to be done? e.g., Name variable, Month, and Year variable

  9. SQL Variables in Databricks - readmedium.com

    This update allows users to declare and use variables in a more straightforward and consistent manner across different execution environments, including notebooks and the Databricks SQL interface.

  10. DECLARE VARIABLE - Azure Databricks | Azure Docs

    Oct 20, 2025 · Learn how to use the DECLARE VARIABLE syntax of the SQL language in Databricks SQL and Databricks Runtime.