why am i having syntax error when i try to execute this:
TRUNCATE TABLE CONCAT(' schemaExample.','nameTable ') CONTINUE IDENTITY RESTRICT;
Thanks
why am i having syntax error when i try to execute this:
TRUNCATE TABLE CONCAT(' schemaExample.','nameTable ') CONTINUE IDENTITY RESTRICT;
Thanks
You cannot use an expression or parameter for an identifier like a table nane. Besides, TRUNCATE
does not support parameters at all.
You will have to issue two SQL statements and construct the TRUNCATE
statement from the first one.