Why do we use %rowtype & %type in plsql?
Answer / Meenakshi Pal
In PL/SQL, %rowtype and %TYPE are used for working with records. n%rowtype is a predefined attribute that allows you to declare a record of the same type as a table or a cursor. It helps in iterating over each row of a record without explicitly knowing column names.nOn the other hand, %TYPE provides the datatype and size information of a variable in PL/SQL. It can be used to declare variables whose data type is the same as that of a column or a table.
| Is This Answer Correct ? | 0 Yes | 0 No |
Does user triggers have entry for trigger with compilation errors?
What is sharding in sql?
Why do we need databases?
What is trigger in pl sql?
What is sql in java?
how is myisam table stored? : Sql dba
What is sequence in sql?
What are character functions in sql?
What is difference between cursor and ref cursor?
Can i possible to see Table Details ? Ex : Table Name Date Time User Emp May/18/2010 12:59pm Scott
What is dml with example?
in oracle 10g sw after compiling procedure how to pass parameter values ,if we (v_empid out number)how to give empid after successful compilation program.This site exact suitable for 10g with respect to question & answer same format , im trying sql browser & sql command prompt using exec procedure name & respective parameters.
Oracle (3253)
SQL Server (4518)
MS Access (429)
MySQL (1402)
Postgre (483)
Sybase (267)
DB Architecture (141)
DB Administration (291)
DB Development (113)
SQL PLSQL (3330)
MongoDB (502)
IBM Informix (50)
Neo4j (82)
InfluxDB (0)
Apache CouchDB (44)
Firebird (5)
Database Management (1411)
Databases AllOther (288)