How to assign a table row to a record variable?



How to assign a table row to a record variable?..

Answer / Mr Praveen Kumar Jain

In Oracle SQL, you can use a SELECT statement with the `INTO` clause to assign a table row to a record variable. Here's an example:nn```sqlnDECLAREn my_record my_record_type;nBEGINn SELECT column1, column2 INTO my_record FROM your_table WHERE primary_key = :primary_key;n ...nEND;n``

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Oracle General Interview Questions

What is a directory object?

1 Answers  


What are the differences between number and binary_float in oracle?

1 Answers  


What are the oracle differences between nvl and coalesce

1 Answers  


types of indexes and the rationale behind choosing a particular index for a situation.

1 Answers  


How do I manually create a database in oracle?

1 Answers  


Explain an index segment?

1 Answers  


How to install oracle database 10g xe?

1 Answers  


How to put more than 1000 values into an oracle in clause?

0 Answers  


ABOUT IDENTITY?

1 Answers   HCL,


How can you tell how much space is left on a given file system and how much space each of the file systems subdirectories take-up?

1 Answers  


I want a table like, no name address addr1 addr2 So i want columns like addr1,addr2 under address column. Can one please answer me. Advance Thanks.

2 Answers   IBM,


i have executed the Delete command after the I have created table whether deletions will be commit or not? if table is successfully created?

5 Answers   Oracle,


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)