How to assign values to data fields in record variables?



How to assign values to data fields in record variables?..

Answer / Ranvijay

In Oracle, you can assign values to data fields in record variables using the `:=` operator. Here's an example:nn`DECLARE rec_variable MY_RECORD; BEGIN rec_variable.field1 := 'value1'; rec_variable.field2 := 'value2'; ... END;`

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Oracle General Interview Questions

How to get a list of all background sessions in the database?

1 Answers  


HI ALL, CAN ANYONE TELL ME THE DIFFERENCES BETWEEN SQL CLUSTURS,MSQL CLUSTERS,ORACLE CLUSTERS.......THANKS IN ADVANCE

1 Answers  


how to hide the stored procedure inside a package

1 Answers  


what is the scenario where you take the database to NoArchivelog mode?

1 Answers  


Explain implicit cursor.

1 Answers  


Can multiple columns be used in group by in oracle?

1 Answers  


How to see the table columns used in an index?

1 Answers  


Which environment variables are absolutely critical in order to run the OUI?

1 Answers  


what is data abstraction

3 Answers   Semantic Space,


how to use sequence and what use of sequence cache

1 Answers  


Explain a synonym?

1 Answers  


Why do we use bulk collect in oracle?

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)