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.
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} """)
never-displayed
Passionate about hosting events and connecting people? Help us grow a vibrant local community—sign up today to get started!