How to define a variable to match a table column data type?



How to define a variable to match a table column data type?..

Answer / Ashvin Yadav

"To define a variable that matches the data type of a specific table column, you can simply declare the variable with the same data type as the column in your PL/SQL block.nnDECLAREn my_column VARCHAR2(255); BEGIN ... END;"

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Oracle General Interview Questions

Can we commit inside a function in oracle?

1 Answers  


what is the difference between primary key & foreign key?

57 Answers   CTS, Infosys, La Multi, Sparsh, Wipro,


What is bulk copy or bcp in oracle?

1 Answers  


List out the components of logical database structure of oracle database.

1 Answers  


How many different types of indexes we have in oracle?

24 Answers   IBM, TCS,


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

1 Answers  


What are the data types in oracle?

1 Answers  


How to export your connection information to a file?

1 Answers  


What is Index and different types of Indexes?

7 Answers  


What is a cognitive schema?

1 Answers  


What is using clause and give example?

1 Answers  


How can you merge two tables 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)