Give three methods used in assigning values to the rows in a PL/SQL table.
What will be an ideal response?
You can assign values to the rows in a table in three different ways:
? Direct assignment
? Assignment in a loop
? Aggregate assignment
Direct assignment. You can assign a value to a row with an assignment statement as you
already have learned in the previous topic. This is preferable if only a few assignments are
to be made. If an entire database table’s values are to be assigned to a table, a looping
method is preferable.
Assignment in a loop. You can use any of the three PL/SQL loops to assign values to
rows in a table. The program block in Fig. 13-3 assigns all Sunday dates for the year 2003 to a table. The primary key index value will vary from 1 to 52. The table column will contain dates for 52 Sundays. If are innovative, you can create great applications with loops and tables.Aggregate assignment. You can assign a table’s values to another table. The data types of both tables must be compatible. When you assign a table’s values to another table, the table receiving values loses all its previous primary key values as well as its data column values. If you assign an empty table with no rows to another table with rows, the recipient table is cleared. It loses all its rows. Both tables must have the same type for such an assignment.
You might also like to view...
When delivering a presentation, pressing the ________ key ends the slide show
Fill in the blank(s) with correct word
An image on a slide with 0% saturation makes the colors more vivid
Indicate whether the statement is true or false
_________________________ chart formatting is restricted greatly as compared to standard charts.
Fill in the blank(s) with the appropriate word(s).
A(n) ____________, or GUI, allows the user to interact with the operating system and application programs through graphical elements on the screen.
a. general-purpose interface b. graphical user interface c. generic unified interface d. graphics utility interface