dbTalk Databases Forums  

Triggers and SELECT INTO

comp.databases.ibm-db2 comp.databases.ibm-db2


Discuss Triggers and SELECT INTO in the comp.databases.ibm-db2 forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Herb
 
Posts: n/a

Default Triggers and SELECT INTO - 04-25-2011 , 08:25 AM






i am using UDB 9.5 on windows... am trying to select 2 columns into
2 variables and can not get it to work...i can use the set if only
pulling one field back but i want to set 2 fields in the select..
any ideas how to get around this or why DB2 does not support this?


SET V_CCPA_I = (
SELECT CCPA_I -, NAME
--INTO V_CCPA_I , V_NAME
FROM TABLE(DCS.GET_STOP_OWNER(NEW.ACT_I)));

Reply With Quote
  #2  
Old   
Serge Rielau
 
Posts: n/a

Default Re: Triggers and SELECT INTO - 04-25-2011 , 08:40 AM






SET (V_CCPA_I, V_NAME) = (
SELECT CCPA_I, NAME
FROM TABLE(DCS.GET_STOP_OWNER(NEW.ACT_I)));



--
Serge Rielau
SQL Architect DB2 for LUW, IBM Toronto Lab
Blog: tinyurl.com/SQLTips4DB2
Wiki: tinyurl.com/Oracle2DB2Wiki
Twitter: srielau

Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.