Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-11-2022 06:50 AM
Hello everyone,
I'm new in Databricks SQL, and I'm comming from SQL Server.
I would like to know what's the equivalent of :
DECLARE @P_Name varchar(50) = 'BackOffice'
It's for use it like this :
CREATE DATABASE @P_Name
Thanks.
Labels:
- Labels:
-
Databricks SQL
-
SQL
15 REPLIES 15
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-23-2023 12:04 AM
Hi @Salah K.
you can go through this code block
%python
P_Name = 'BackOffice'
spark.sql(f""" create database {P_name} """)


- « Previous
-
- 1
- 2
- Next »