You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I understand we have a way to use variable for entire object name .
For example : SET param_db_temp = 'db_temp';
SET param_it = 'mytable_first';
select * from {db_temp : Identifier}.{it: Identifier}
Describe the solution you'd like
I am wondering if we can solve the below two problems to achieve the same result :
Problem 1 SET param_db_temp = 'db_temp';
SET param_it = 'mytable';
SET param_var = 'first';
select * from {db_temp : Identifier}.{it: Identifier}{var: Identifier}_
Problem 2 SET param_db_temp = 'db_temp';
SET param_var = 'first';
select * from {db_temp : Identifier}.my_table{var: Identifier}_
Describe alternatives you've considered
So far I have been not found an alternative.
Additional context
This feature will allow users to invoke the same function from multiple places and the interim tables created by the function wont overlap with each other .
The text was updated successfully, but these errors were encountered:
feature - dynamic assignment of table name
I understand we have a way to use variable for entire object name .
For example :
SET param_db_temp = 'db_temp';
SET param_it = 'mytable_first';
select * from {db_temp : Identifier}.{it: Identifier}
Describe the solution you'd like
Problem 1
SET param_db_temp = 'db_temp';
SET param_it = 'mytable';
SET param_var = 'first';
select * from {db_temp : Identifier}.{it: Identifier}{var: Identifier}_
Problem 2
SET param_db_temp = 'db_temp';
SET param_var = 'first';
select * from {db_temp : Identifier}.my_table{var: Identifier}_
Describe alternatives you've considered
Additional context
The text was updated successfully, but these errors were encountered: