'How to create a placeholder in table name in databricks

Hope the title clarifies what I actually want. I will try to describe the problem.

I am looking for something like this :

variable = "1"
%sql 
DROP TABLE IF EXISTS database.table_{variable}


Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source