Skip to Main Content

SQL & PL/SQL

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Dynamically read table name in update query

Pratap DalaiOct 1 2015 — edited Oct 2 2015

HI ALL,

I am trying to execute the below sql update query where table name should be read dynamically from another table.

Please let me what is wrong in my query.

update (select CONCAT('T',schemaid) from schemat where name='Analyzer')  set c7 =99;

"schemat" is a table which contains two columns name and schemaid.

.all the Table created in our database with prefix 'T' for example T4345.

This post has been answered by BluShadow on Oct 1 2015
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Oct 30 2015
Added on Oct 1 2015
15 comments
2,053 views