How can you create Cursor with parametres ?

Answer Posted / madhuri

We can create cursor with parameters using parameterized
cursors.We declare the cursor in the deceleration section
with parameters.
Syntax: cursor <cursor_name>(parameters) is <select_stmt>

We pass values to these cursors while opening it.
open c1(100,'Computers');

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

which command using query analyzer will give you the version of sql server and operating system? : Sql dba

715


Mention what are different methods to trace the pl/sql code?

771


What is the difference between jpql and sql?

810


what is column? : Sql dba

754


a table has 2 classifications 1)liabilities 2)earnings this liabitity has 2 elements with 2 input values and the earnings have 2 elements with 2 input values i wrote a query so that my input is liability savings amount1 amount2 xxxx null xxxxxx 0 xxx1 null xxxxx1 0 null yyyy 0 yyyy null yyy1 0 yyy1 my problem is --when i developed a report(d2k) with this data my o/p is liabilities,amount1,savings,amount2 xxxx xxxxxx xxx1 xxxxx1 yyyy yyyy yyy1 yyy1 how could i move this savings,savings values 2 palces up. can any body provide me witha better solution

1964


How does join work in sql?

746


what is a primary key? : Sql dba

764


What is nosql db?

724


When should I use nosql database?

744


What is time based sql injection?

711


What are % type and % rowtype?

784


what are the advantages of sql ? : Sql dba

755


Which tcp/ip port does sql server run?

731


what are the advantages and disadvantages of views in a database? : Sql dba

778


What is pl sql in dbms?

701