How to declare a local variable?



How to declare a local variable?..

Answer / Kajal

In Oracle PL/SQL, you can declare a local variable using the `VARIABLE` keyword followed by the name and data type of the variable. Here's an example:nn```sqlnDECLAREn my_variable VARCHAR2(50);nBEGINn ...nEND;n``

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Oracle General Interview Questions

What is the Difference between 1) ER MODEL and Relational Model 2) Dense Index and Sparse Index

1 Answers  


what is the exact diiference between DBMS and RDBMS

4 Answers   Tesco,


3. Display all the client numbers in the ORDER table. Remove duplicates.

1 Answers   Wipro,


What is difference between a formal and an actual parameter?

1 Answers  


Explain what are the uses of rollback segment?

1 Answers  


What is a oracle database?

1 Answers  


Hi this srilatha. I comlpeted my Oracle-hrms. can u provide me interview questions on Core hr, payroll,sshr,OLM etc..

1 Answers  


a query to select maxmun 3 salaries of employee table

12 Answers   IBM, Polaris,


How to connect to the server with user account: sys?

1 Answers  


without using count(*) and rownum how can we count total record in a table

5 Answers   AC, HP,


Explain integrity constraints?

1 Answers  


How to do a full database export?

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)