Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-19-2022 04:30 AM
Hello. What would be the equivalent of the below in databricks?
DECLARE @LastChangeDate as date
SET @LastChangeDate = GetDate()
I already tried the below and worked. However I need to know how set a sql variable dynamically
SET da.dbname = test;
SELECT "${da.dbname}" AS db_name
Thank you in advance.
Labels:
- Labels:
-
SQL