what are %TYPE and %ROWTYPE? what is the difference?

Answer Posted / debasis dutta

%type is associates a variable with column data of a table..
ex..
empno emp_mast.eno%type;
%rowtype is associates a variable with whole table data of
a database..
ex
tot emp_mast%rowtype;

Is This Answer Correct ?    13 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

how to delete duplicate rows from a join tables(I have three tables on that join) how do you know which join is need to be used? The select statement I have is: SELECT gc_skill_type.skill_type, gc_area_tec.area, gc_technology.technology, gc_technology.id_technology, gc_area_tec.id_area_tec FROM gc_skill_type, gc_area_tec, gc_technology WHERE gc_area_tec.id_skill_type (+) = gc_skill_type.id_skill_type AND gc_technology.id_area_tec (+) = gc_area_tec.id_area_tec order by gc_skill_type.skill_type asc, gc_area_tec.area asc, gc_technology.technology asc

3229


what is an execution plan? When would you use it? How would you view the execution plan? : Sql dba

540


How do you update a value in sql?

545


What do you know by pl/sql cursors?

556


what are the system privileges that are required by a schema owner (user) to create a trigger on a table?

613






What is lookup table in sql?

599


How to move files from one directory to another in pl sql?

637


How do you declare a user-defined exception?

523


Explain the uses of a database trigger?

562


What is audit logout in sql profiler?

585


what is the difference between char_length and length? : Sql dba

567


What is a recursive join sql?

591


What is query execution plan in sql?

563


How you improve the performance of sql*loader? : aql loader

571


How do I view a table in sql?

539