Using variables in Spark SQL

HariharaSam
Databricks Partner

Is there a way to declare variables in Spark SQL like we do it in T-SQL?