Results 1 to 2 of 2

Thread: Debugging

  1. #1
    Join Date
    Aug 2010
    Posts
    1

    Question Unanswered: Debugging

    Please tell me the best technique that can be used to debug large dynamic SQL

  2. #2
    Join Date
    Aug 2003
    Location
    Where the Surf Meets the Turf @Del Mar, CA
    Posts
    7,776
    Provided Answers: 1
    >Please tell me the best technique that can be used to debug large dynamic SQL
    Avoid dynamic SQL because it is non-scalable & nasty to debug!

    The standard advice when (ab)using EXECUTE IMMEDIATE is to compose the SQL statement in a single VARCHAR2 variable
    Then print the SQL before passing it to EXECUTE IMMEDIATE.
    COPY the statement & PASTE into sqlplus to validate its correctness.
    You can lead some folks to knowledge, but you can not make them think.
    The average person thinks he's above average!
    For most folks, they don't know, what they don't know.
    Good judgement comes from experience. Experience comes from bad judgement.

Tags for this Thread

Posting Permissions

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