How to define a record variable to store a table row?



How to define a record variable to store a table row?..

Answer / Rahul Pratap Singh

To define a record variable to store a table row in Oracle, you can use the RECORD keyword followed by the table name. For example: n`DECLARE recMyTable MyTable%ROWTYPE; BEGIN SELECT * INTO recMyTable FROM my_table WHERE id = 1; END;`

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Oracle General Interview Questions

what is analyze command ? what kind of statistics does it generate?

2 Answers  


How to download oracle database 10g xe?

1 Answers  


Explain the function of optimizer in oracle?

1 Answers  


What is Network Database link ?

1 Answers  


Explain integrity constraint?

1 Answers  


How can we find out the current date and time in oracle?

1 Answers  


Give the different types of rollback segments.

1 Answers  


What is a OUTER JOIN?

1 Answers  


What is key preserved table?

1 Answers  


What is the difference between substr and instr?

1 Answers  


Name the various constraints used in oracle?

1 Answers  


How to do clean up if create database failed?

1 Answers  


Categories
  • Oracle General Interview Questions Oracle General (1803)
  • Oracle DBA (Database Administration) Interview Questions Oracle DBA (Database Administration) (261)
  • Oracle Call Interface (OCI) Interview Questions Oracle Call Interface (OCI) (10)
  • Oracle Architecture Interview Questions Oracle Architecture (90)
  • Oracle Security Interview Questions Oracle Security (38)
  • Oracle Forms Reports Interview Questions Oracle Forms Reports (510)
  • Oracle Data Integrator (ODI) Interview Questions Oracle Data Integrator (ODI) (120)
  • Oracle ETL Interview Questions Oracle ETL (15)
  • Oracle RAC Interview Questions Oracle RAC (93)
  • Oracle D2K Interview Questions Oracle D2K (72)
  • Oracle AllOther Interview Questions Oracle AllOther (241)