TAILIEUCHUNG - Oracle PL/SQL Language Pocket Reference- P24

Oracle PL/SQL Language Pocket Reference- P24: This pocket guide features quick-reference information to help you use Oracle's PL/SQL language. It includes coverage of PL/SQL features in the newest version of Oracle, Oracle8i. It is a companion to Steven Feuerstein and Bill Pribyl's bestselling Oracle PL/SQL Programming. Updated for Oracle8, that large volume (nearly 1,000 pages) fills a huge gap in the Oracle market, providing developers with a single, comprehensive guide to building applications with PL/SQL and building them the right way. . | tabrow 1 FOR company_cur IN company_rec LOOP profit_and_loss net_profit_table tabrow calculate_net_profit tabrow tabrow 1 END LOOP Try reading this code out loud For every company in my cursor profit-and-loss the company and then add the calculate-net-profit to the table. It doesn t sound right and it doesn t look right. If you simply name the procedure profit_and_loss you do not explain what you are doing with the profit and loss. And if you include a verb in the function name you have one verb too many the assignment operator itself already serves as the action for that statement. I can make a few minor adjustments in these module names and end up with much more readable code as shown in this example tabrow 1 FOR company_cur IN company_rec LOOP calculate_p_and_l net_profit_table tabrow net_profit company_cur. company_id tabrow tabrow 1 END LOOP The module names say it all For each company retrieved from the cursor calculate the profit and loss and store the net profit for that company in the net profit PL SQL table. Additional formal documentation seems unnecessary. Can I say the same thing about the next version of the loop tabrow 1 FOR company_cur IN company_rec LOOP calcpl net_profit_table tabrow np company_cur. company_id tabrow tabrow 1 END LOOP The module names in this code are excessively abbreviated. It is unrealistic to expect someone who didn t actually write the calcpl procedure and the np function to understand what those terms are supposed to mean. You should strike a happy medium between the above obscure identifiers and verbose names like these Please purchase PDF Split-Merge on to remove this watermark. calculate_profit_and_loss_per_company net_profit_for_single_company Don t forget that you or someone else will have to type those program names Develop Consistent Naming Conventions for Your Formal Parameters A parameter plays a .

TAILIEUCHUNG - Chia sẻ tài liệu không giới hạn
Địa chỉ : 444 Hoang Hoa Tham, Hanoi, Viet Nam
Website : tailieuchung.com
Email : tailieuchung20@gmail.com
Tailieuchung.com là thư viện tài liệu trực tuyến, nơi chia sẽ trao đổi hàng triệu tài liệu như luận văn đồ án, sách, giáo trình, đề thi.
Chúng tôi không chịu trách nhiệm liên quan đến các vấn đề bản quyền nội dung tài liệu được thành viên tự nguyện đăng tải lên, nếu phát hiện thấy tài liệu xấu hoặc tài liệu có bản quyền xin hãy email cho chúng tôi.
Đã phát hiện trình chặn quảng cáo AdBlock
Trang web này phụ thuộc vào doanh thu từ số lần hiển thị quảng cáo để tồn tại. Vui lòng tắt trình chặn quảng cáo của bạn hoặc tạm dừng tính năng chặn quảng cáo cho trang web này.