Loading topic
SELECT, WHERE, and DML statements. You should also know the structure of an anonymous PL/SQL block, how to declare scalar variables, and how to run a script with DBMS_OUTPUT enabled.1 min readSELECT, WHERE, and DML, the structure of an anonymous PL/SQL block, scalar variables, and how to run a script with DBMS_OUTPUT enabled.1 min readDBMS_OUTPUT is enabled in your SQL tool.1 min readDBMS_OUTPUT enabled.1 min readDBMS_OUTPUT enabled.2 min readCASE statement tests Boolean conditions in order. The first condition that is TRUE determines which statement runs. Unlike a simple CASE statement, it does not compare one selector with a list of fixed values.1 min readSELECT, PL/SQL block structure, variables, and assignments. This chapter focuses on choosing between a CASE statement, which controls actions, and a CASE expression, which produces a value.2 min readIF statements, and basic exception handling. CASE_NOT_FOUND is a predefined PL/SQL exception. It occurs when a CASE statement has no matching WHEN branch and no ELSE branch.2 min readDBMS_OUTPUT enabled. A basic LOOP repeats its statements until execution reaches an EXIT statement. PL/SQL does not stop a basic loop automatically, so every useful basic loop needs a reachable exit cond1 min readDBMS_OUTPUT enabled.2 min readDBMS_OUTPUT enabled. A numeric FOR loop repeats a statement block for each integer in a specified range.2 min readIF, LOOP, and numeric FOR loops. The key distinction is that CONTINUE skips work in the current iteration, while EXIT ends a loop.1 min readSELECT statements and anonymous PL/SQL blocks. This chapter focuses on processing each row returned by a query.2 min readDBMS_OUTPUT enabled.2 min readSELECT and DML statements, anonymous PL/SQL blocks, variables, and cursor FOR loops. This chapter focuses on choosing between row-by-row PL/SQL and set-based SQL.2 min read