Quantcast
Channel: Teradata Forums - Database
Viewing all articles
Browse latest Browse all 14773

Use of CTE within stored procedures - response (4) by dnoeth

$
0
0

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

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


Viewing all articles
Browse latest Browse all 14773

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>