sql - how to use truncate in CTE -
with tranecttect (Empid, name) as (truncatetest * choose from where Empid = 10) table truncatecte Truncate but this is showing an error:
Wrong syntax near the keyword 'trunk' Please help me solve it ... < / Div>
Actually, TRUNCATE is a DDL operation, which means that all of the rows You can not delete the Some rows And leave the other rows in the table. And, the with section can be processed as inline view or a temporary table, therefore, there is no point in touching it. So, your query does not understand at all.
If you want to remove some rows from a table, delete what it means, but because you have mixed subquery factory and small, the full question is invalid .
Comments
Post a Comment