Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Common table expression in a stored procedure

Status
Not open for further replies.

ramcorind

Programmer
Apr 28, 2003
2
CA
Are you able to use a recursive common table expression in a stored procedure? I have tried to create a stored procedure which uses a recursive common table expresion and I receive an error specifying that "an unexpected token WITH was found".

I have also tried to use a recursive common table expression in a trigger and I receive a similar message.

I have read that declared temporary tables cannot be used in triggers. Are common table expressions considered the same as declared temporary tables?

Any input would be greatly appreciated.
 
Not all implementations of DB2 support temporary tables.
What environment are you using?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top