Concat variable to form Table name inside Select statement
Originally posted by mwasif
Are you looking for this?
[CODE=mysql]SET @a = 'table';
SET @x := CONCAT('SELECT * FROM ', CONCAT(@a, '_', 'name'));
Prepare stmt FROM @x;
Execute stmt;[/CODE]
This is equal to
[CODE=mysql]SELECT * FROM table_name;[/CODE]
i need help,
how to Concat variable to form Table name inside insert statement in PL/SQL in oracle 7.3 ?
Hello
I m also having requiremnet of same kind.
I would like to know how to concat a variable to a table in pl/sql
as i need to insert data from the concated table to a custom table
please help
Hello
I m also having requiremnet of same kind.
I would like to know how to concat a variable to a table in pl/sql
as i need to insert data from the concated table to a custom table
please help
thanks
kindly post the code that you are working on for reference of our experts.
Comment