Oracle ve MSSQL da GOTO

by Nurgün Özgür 7. September 2009 21:52

Sevilmeyen fakat benim sık sık kullandığım komut. Küçük sp'lerde test ve debugı epey kolaylaştırıyor.

SP'yi release etmeden önce GOTO komutunu kaldırmayı unutmayın!

 

Kullanım örnekleri:

Oracle

 

CREATE OR REPLACE PROCEDURE GotoProc

(

  v_Debug IN NUMBER

)

AS

BEGIN

   IF v_Debug = 1 THEN

      GOTO Son;

   END IF;

   DBMS_OUTPUT.PUT_LINE('test0');

   <<Son>>

   DBMS_OUTPUT.PUT_LINE('test1');

END;

 

 

MSSQL

 

CREATE PROC GotoProc

 @Debug bit

 AS

BEGIN

      if @Debug = 1 GOTO Son

      select 'test'

      Son:

END

 

 

Tags: , ,

Comments

4/4/2010 5:58:56 PM #

online free games

Hi blogger, many thanks for serving up such a blog post... I found it superb. Greets,  !!!

online free games United States | Reply

4/18/2010 8:53:12 AM #

szerencsejáték

I have recently started using the blogengine.net and I having some problems here? in your blog you stated that we need to enable write permissions on the App_Data folder...unfortunately I don't understand how to enable it.

szerencsejáték United States | Reply

4/24/2010 5:45:06 PM #

best comforters

I have been surfing online more than three hours today, yet I never found any interesting article like yours. It's pretty worth enough for me. In my opinion, if all webmasters and bloggers made good content as you did, the internet will be much more useful than ever before.

best comforters United States | Reply

4/27/2010 11:46:57 PM #

Rapidshare

I\'m happy I found this blog, I couldnt discover any info on this subject matter prior to. I also run a site and if you want to ever serious in a little bit of guest writing for me if possible feel free to let me know, i\'m always look for people to check out my site. Please stop by and leave a comment sometime!

Rapidshare United States | Reply

4/28/2010 2:54:18 AM #

Compositions

If I could say one thing about this blog it would be design!  I mean, I was so distracted by the clashing colours that it was pointless to try to read the blog.  What are trying to do here exactly?  No one can read this is if it looks like a kid smashed a box of Crayola on your page!  Please do something about this.

Compositions United States | Reply

4/30/2010 7:19:57 PM #

casio mens watch

You...are...awesome!  This blog is so great.  I really hope more people read this and get what youre saying, because let me tell you, its important stuff.  I never wouldve thought about it this way unless Id run into your blog.  Thanks for putting it up.  I hope you have great success.

casio mens watch United States | Reply

5/2/2010 11:28:31 PM #

Scottish Widows

I hope you never stop!  This is one of the best blogs Ive ever read.  Youve got some mad skill here, man.  I just hope that you dont lose your style because youre definitely one of the coolest bloggers out there.  Please keep it up because the internet needs someone like you spreading the word.

Scottish Widows United States | Reply

5/3/2010 8:33:43 AM #

anniversary gifts

What I want to know is why I should care?  I mean, not to say that what youve got to say isnt important, but I mean, its so generic.  Everyones talking about this man.  Give us something more, something that we can get behind so we can feel as passionately about it as you do.

anniversary gifts United States | Reply

5/27/2010 2:16:54 PM #

landscape

Admiring the time and effort you put into your blog and detailed information you offer! I will bookmark your blog and have my children check up here often.

landscape United States | Reply

5/28/2010 8:12:27 PM #

health and beauty products

If I might --perhaps you should consider adding a few images.  I dont mean to disrespect what youve said; its very enlightening, indeed.  However, I think would respond to it more positively if they could be something tangible to your ideas.  Keep it up, but put a little more into it next time.

health and beauty products United States | Reply

5/29/2010 7:14:58 PM #

guru blueprint bonus

Heard this before.

guru blueprint bonus United States | Reply

5/29/2010 9:31:15 PM #

Dreamweaver Tutorials

Im impressed, I must say.  Very rarely do I come across a blog thats both informative and entertaining, and let me tell you, youve hit the nail on the head.  Your blog is important; the issue is something that not enough people are talking intelligently about.  Im really happy that I stumbled across this in my search for something relating to this issue.

Dreamweaver Tutorials United States | Reply

Add comment




  Country flag

biuquote
  • Comment
  • Preview
Loading



Nurgün Özgür

Facebook

 

Nurgün Özgür Photo

1993'ten bu yana profesyonel olarak yazılım ve sistem yönetimi konularında çeşitli yerli ve yabanci kuruluşların farklı kademelerinde aktif olarak yer aldım. 2011 yılında emekliliğe ayrıldım.

 

Valid XHTML 1.0 Transitional


Tag cloud


Facebook ile giriş