I am trying to use a while loop in a stored procedure to update a list of tables. When trying to execute the below code, I am getting the error: Table name "table_nam
Table name "table_nam
in below fragment of script
UPDATE table_name SET name = "new_name" WHERE name = "old_name";
you should use EXECUTE IMMEDIATE - something like below
EXECUTE IMMEDIATE ''' UPDATE ''' || table_name || ''' SET name = "new_name" WHERE name = "old_name"''';