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 > Difference between SQL procedures and compound SQL Statments

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 04-14-08, 15:03
dbshiva dbshiva is offline
Registered User
 
Join Date: Apr 2008
Posts: 5
Difference between SQL procedures and compound SQL Statments

I would like to know Difference between SQL procedures and compound SQL Statments. Please let me know about the performanance using these.

Thanks
Shiva
Reply With Quote
  #2 (permalink)  
Old 04-15-08, 06:07
stolze stolze is offline
Registered User
 
Join Date: Jan 2007
Location: Jena, Germany
Posts: 2,662
A DB2 procedure may contain a compound statement, gets a name and it is stored at the server - hence the name "stored procedure". You can execute a stored procedure using the CALL statement.

A compound statement is just a sequence of SQL statements. It may be contained in a stored procedure or UDF.
__________________
Knut Stolze
IBM DB2 Analytics Accelerator
IBM Germany Research & Development
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