Explain the purpose of %type and %rowtype data types with the example?
Answer / 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 |
What is the non-clustered index in sql?
Explain how can you save or place your msg in a table?
need to split a string into separate values. eg. col1 col2 ---------- 100 - 'a,b,c' 200 - 'a,x,d,e' 300 - 'c' result: value count ------------- a - 2 b - 1 c - 2 etc.
what is a tablespace? : Sql dba
Why are indexes and views important to an organization?
discuss about myisam key cache. : Sql dba
What is primary key secondary key alternate key candidate key?
Can we perform dml on view?
Is id a reserved word in sql?
How can I create a table from another table without copying any values from the old table?
What is a stored procedure in sql with example?
What are the conditions an underlying table must satisfy before a cursor can be used by a positioned update or delete statement? : Transact sql
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)