It is very clear that you are not creating a dynamic query properly. Space is missing between TABLE'|| C.table_name
It must be something like this:
EXECUTE IMMEDIATE 'TRUNCATE TABLE '|| C.table_name; -- see space after TABLE
Cheers!!
More Related Contents:
- What is the replacement of cursor foreach in oracle pl/sql?
- Can you SELECT everything, but 1 or 2 fields, without writer’s cramp?
- Printing the value of a variable in SQL Developer
- PL/SQL, how to escape single quote in a string?
- Oracle PL/SQL – Raise User-Defined Exception With Custom SQLERRM
- Passing an array of data as an input parameter to an Oracle procedure
- Convert comma separated string to array in PL/SQL
- UTL_FILE.FOPEN() procedure not accepting path for directory?
- Oracle stored procedure with parameters for IN clause
- PL/SQL ORA-01422: exact fetch returns more than requested number of rows
- Get resultset from oracle stored procedure
- ways to avoid global temp tables in oracle
- Split function in oracle to comma separated values with automatic sequence
- check if “it’s a number” function in Oracle
- ORA-06508: PL/SQL: could not find program unit being called
- How to return a resultset / cursor from a Oracle PL/SQL anonymous block that executes Dynamic SQL?
- Create Pivot view in SQL from a SQL table
- SQL*Plus how to accept text variable from prompt?
- SQL Fiddle Output Error
- Why doesn’t PL/SQL respect privileges granted by Roles?
- oracle PL/SQL how to calculate range ip for IPv6 cidr
- if (select count(column) from table) > 0 then
- Can We use threading in PL/SQL?
- Why cannot I use bind variables in DDL/SCL statements in dynamic SQL?
- Trying to export a Oracle via PL/SQL gives a date of 0000-00-00
- What is the algorithm used by the ORA_HASH function?
- passing in table name as plsql parameter
- Reading clob line by line with pl\sql
- BEGIN – END block atomic transactions in PL/SQL
- Escaping single quote in PLSQL