TAILIEUCHUNG - Oracle PL/SQL by Example- P15

Tham khảo tài liệu 'oracle pl/sql by example- p15', công nghệ thông tin, cơ sở dữ liệu phục vụ nhu cầu học tập, nghiên cứu và làm việc hiệu quả | 672 APPENDIX D Answers to the Try it Yourself Sections Consider the partial output produced by this script Deleted 1 rows for course 10 section_id 80 Deleted 4 rows for section_id 81 section_id 82 section_id 83 section_id 84 course 20 Deleted 9 rows for section_id 85 section_id 86 section_id 87 section_id 88 section_id 89 section_id 90 section_id 91 section_id 92 section_id 93 course 25 Deleted 5 rows for section_id 141 section_id 142 section_id 143 section_id 144 section_id 145 course 100 Deleted 6 rows for section_id 146 section_id 147 section_id 148 section_id 149 section_id 150 section_id 151 course 120 Deleted 5 rows for section_id 152 section_id 153 section_id 154 section_id 155 section_id 156 course 122 PL SQL procedure successfully completed. Please purchase PDF Split-Merge on to remove this watermark. APPENDIX D Answers to the Try it Yourself Sections 673 Chapter 19 Procedures PART 1 1 Write a procedure with no procedure should say whether the current day is a weekend or weekday. Additionally it should tell you the user s name and the current time. It also should specify how many valid and invalid procedures are in the database. ANSWER The procedure should look similar to the following CREATE OR REPLACE PROCEDURE current_status AS v_day_type CHAR 1 v_user VARCHAR2 30 v_valid NUMBER v_invalid NUMBER BEGIN SELECT SUBSTR TO_CHAR sysdate DAY 0 1 INTO v_day_type FROM dual IF v_day_type S THEN Today is a weekend. ELSE Today is a weekday. END IF The time is TO_CHAR sysdate HH MI AM SELECT user INTO v_user FROM dual The current user is v_user SELECT NVL COUNT 0 INTO v_valid FROM user_objects WHERE status VALID AND object_type PROCEDURE There are v_valid valid procedures. SELECT NVL COUNT 0 INTO v_invalid FROM user_objects WHERE status INVALID AND object_type PROCEDURE Please purchase PDF Split-Merge on to remove .

TỪ KHÓA LIÊN QUAN
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.