TAILIEUCHUNG - HandBooks Professional Java-C-Scrip-SQL part 169

Tham khảo tài liệu 'handbooks professional java-c-scrip-sql part 169', công nghệ thông tin, kỹ thuật lập trình phục vụ nhu cầu học tập, nghiên cứu và làm việc hiệu quả | Conditional and Sequential Control PL SQL includes conditional IF CASE structures as well as sequential control GOTO NULL constructs. Conditional Control Statements There are several varieties of IF-THEN-ELSE and CASE structures. IF-THEN combination IF condition THEN executable statement s END IF For example IF caller_type VIP THEN generate_response GOLD END IF IF-THEN-ELSE combination IF condition THEN TRUE sequence_of_executable_statement s ELSE FALSE NULL sequence_of_executable_statement s END IF For example IF caller_type VIP THEN generate_response GOLD ELSE generate_response BRONZE END IF IF-THEN-ELSIF combination IF condition-1 THEN statements-1 ELSIF condition-N THEN statements-N ELSE ELSE statements END IF For example IF caller_type VIP THEN generate_response GOLD ELSIF priority_client THEN generate_response SILVER ELSE generate_response BRONZE END IF CASE statement Oracle9i There are two types of CASE statements simple and searched. A simple CASE statement is similar to an IF-THEN-ELSIF structure. The statement has a switch expression immediately after the keyword CASE. The expression is evaluated and compared to the value in each WHEN clause. The first WHEN clause with a matching value is executed and then control passes to the next statement following the END CASE. For example CASE region_id WHEN NE THEN mgr_name MINER WHEN SE THEN mgr_name KOOI ELSE mgr_name LANE END CASE If a switch expression evaluates to NULL the ELSE case is the only one that can possibly match WHEN NULL will never match because Oracle performs an equality comparison on the expressions. Both the CASE statement and the CASE expression see the next section should include an ELSE clause that will execute statements if no WHEN clause evaluates TRUE because PL SQL s runtime engine will raise an exception if it finds no matching expression. The searched CASE statement does not have a switch instead each WHEN clause has a complete Boolean .

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.