Questions about the use of parameterized cursors for oracle8i

Updated on technology 2024-05-22
10 answers
  1. Anonymous users2024-02-11

    cursor pdct-parameter-cur (id varchar,price number)

    is select * from productinfowhere productid like id \\'%'

    and productprice>price;

    A parameterized cursor is declared, where productid like id ||'%'Here, add a "%" wildcard to the end of the actual value of the parameter id to match it. If the id is passed in the value is'123456', that condition is equivalent to where productid like'123456%' 。

  2. Anonymous users2024-02-10

    This is the meaning of defining the fields used in the table in the cursor, and assigning values to him to initialize...

  3. Anonymous users2024-02-09

    There should be something wrong with this sentence:

    str:='select ename from where ename like ''%'||letter||'%''';

  4. Anonymous users2024-02-08

    Cursors can be declared with variables.

    cursor cur(letter varchar2) is

    select ename from where ename like ‘%letter||'%'

  5. Anonymous users2024-02-07

    I would also like to know how to define it, how did this problem later be solved? Can you share that?

  6. Anonymous users2024-02-06

    Parameter or field? The compilers must have been confused by you :

    cursor cur_goods(p_categoryid varchar) is

    select * from

    select * from goods gwhere order by asc

    where rownum<2;

    Change it to this and you'll be fine.

  7. Anonymous users2024-02-05

    I'll write you an example.

  8. Anonymous users2024-02-04

    create or replace procedure test1(cursor1 out sys_refcursor)is

    beginopen cursor1 for select * from table name;

    end;Then go to this cursor in the program you are calling.

  9. Anonymous users2024-02-03

    Look for the oracle book yourself, this is not clear.

  10. Anonymous users2024-02-02

    This is the ordinary saving process.

Related questions
7 answers2024-05-22

Summation statements in SQL are divided into vertical summary statements and horizontal summary statements. >>>More

8 answers2024-05-22

The question asked by the landlord is also a question that I am concerned about!! I just hope it helps you!! If it's professional, I won't talk about it!! Tell me a little bit about it!! >>>More

5 answers2024-05-22

Small 5 pixels high....Straight board....The small 8 is a side slip....

29 answers2024-05-22

Replacing the entire computer is equivalent to buying a new one.

15 answers2024-05-22

That can be added or not added when leading an object clause, but not this