Question:
Describe the use of %ROWTYPE and %TYPE in PL/SQL
Answer:
Level: Low Expected answer: %ROWTYPE allows you to associate a variable with an entire table row. The %TYPE associates a variable with a single column type. Source: CoolInterview.com
EXAMPLE: EMP_NO EMP.EMPNO%TYPE;
REC_EMP EMP%ROWTYPE; OR, REC_EMP CUR_EMP%ROWTYPE;
WHERE CUR_EMP IS A CURSOR ON THE EMP TABLE Source: CoolInterview.com
Answered by: manoranjan hota | Date: 8/29/2009
| Contact manoranjan hota
If you have the better answer, then send it to us. We will display your answer after the approval.
Rules to Post Answers in CoolInterview.com:-
- There should not be any Spelling Mistakes.
- There should not be any Gramatical Errors.
- Answers must not contain any bad words.
- Answers should not be the repeat of same answer, already approved.
- Answer should be complete in itself.
|