SQL Data Manipulation Language
Chapter 1: The SELECT Statement
WITH [RECURSIVE] Request Modifier
Rules and Restrictions for the WITH and WITH RECURSIVE Request
Modifiers
You cannot specify a WITH or WITH RECURSIVE request modifier in the definitions of
any of these database objects:
• Views and recursive views
• Triggers
• Stored procedures
• Derived tables
You might ask suppport for the reason and/or open an Enhancement Request.
Don't ask me why it's restricted and i have to admit i never noticed it before. I only needed WITH within a cursor definition and this is allowed since TD13.
You might ask suppport for the reason and/or open an Enhancement Request.
Dieter