SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Addict
    Join Date
    Dec 2009
    Posts
    301
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    code indentation

    I have a store procedure.

    It has many nested IF ELSE block. These are not properly indented.

    How do I indent nested IF ELSE block properly and increase readability of my code ?

    Its very difficult to read a unindented code.

    suggest me a solution to indent store procedure code.

    Thanks

  2. #2
    SQL Consultant gold trophysilver trophybronze trophy
    r937's Avatar
    Join Date
    Jul 2002
    Location
    Toronto, Canada
    Posts
    39,244
    Mentioned
    59 Post(s)
    Tagged
    3 Thread(s)
    Quote Originally Posted by windowsxp View Post
    suggest me a solution to indent store procedure code.
    do it yourself, results are much more satisfying

    use tabs or spaces (but be consistent in your choice)

    alternatively, use one of these -- code formatter
    rudy.ca | @rudydotca
    Buy my SitePoint book: Simply SQL
    "giving out my real stuffs"


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •