If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > DB2 > Signal and Resignal

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 01-12-06, 06:12
Shefu Shefu is offline
Registered User
 
Join Date: Apr 2005
Posts: 127
Signal and Resignal

What is difference between between SIGNAL and RESIGNAL? Both of them seems to have the same type of syntax., kindly help me out to understand things...

thanks
Sn
Reply With Quote
  #2 (permalink)  
Old 01-12-06, 08:06
ARWinner ARWinner is offline
Registered User
 
Join Date: Jan 2003
Posts: 3,575
The difference is this:
for SIGNAL
1) the SQLSTATE must be stated unless signalling a named condition
2) can be placed anywhere
For RESIGNAL
1) Must be in condition handler
2) SQLSTATE is optional, if omitted will use sqlstate that caused condition handler to execute.

HTH

Andy
Reply With Quote
  #3 (permalink)  
Old 01-12-06, 09:31
Shefu Shefu is offline
Registered User
 
Join Date: Apr 2005
Posts: 127
Thanks for the info andy.

regards,
Sn
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On