DBAsupport.com Forums - Powered by vBulletin
Results 1 to 3 of 3

Thread: How do I Remove a value stored with && ?

  1. #1
    Join Date
    Aug 2000
    Posts
    462
    In SQL*PLUS, I'm developing a procedure. As part of the procedure, I have a value I wish to prompt for once, then use repeatedly. Now I don't get prompted any more and I need to change the value.

    declare

    cursor x is select * from mytable where id = &&ID;

    begin
    . . .
    end;
    /

    How can I "undefine" this value?

    Oracle DBA and Developer

  2. #2
    Join Date
    Jul 2000
    Posts
    243
    Hi

    as far as i know, you can define a parameter an the start of the procedur as an IN parameter, or you can read from a text file useing utl_file. you have no & in a procedur becouse this is used for run time parameters when you do not create an object on the database.

  3. #3
    Join Date
    May 2001
    Posts
    8
    Use the SQL*Plus undefine command.

    ex. - undefine ID

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Click Here to Expand Forum to Full Width