adspace
Explain the purpose of %type and %rowtype data types with the example?
Answer Posted / Ravindra Kumar Sagar
%TYPE is a PL/SQL construct that creates a variable of the same type as an existing database object (column, table, or package). %ROWTYPE is a PL/SQL record type corresponding to a table in the database. Example:DECLARE v_student student%rowtype; BEGIN SELECT * INTO v_student FROM student WHERE id = 1; END;
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What is the best sql course?
what is collation? : Sql dba
What is the current version of sql?
how many tables will create when we create table, what are they? : Sql dba
Hi am new to PLSQL & facing problems in writing code like in SP, Functions, so any one having some SP coding with in depth explanation please share with me my Email ID suvarnaatsuvarna@rediffmail.com Or taking tanning on this please do contact me
Is primary key clustered index?
How do I remove duplicates in two columns?
Is primary key always clustered index?
what is sql server agent? : Sql dba
Is inner join faster than left join?
what is schema? : Sql dba
Can we use distinct and group by together?
Can we rollback truncate?
what is dbms? : Sql dba
what is bcp? When does it used? : Sql dba