Skip to Main Content

Oracle Database Discussions

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Update and Bind Variable Issue

3528418Apr 24 2018 — edited Apr 24 2018

Hi Team,

Using Oracle 11g R2.

I have one SP which update records of last 30 hrs. And I am trying to use BIND variables in update statement but getting error message

>> PLS-00049: bad bind variable 'A' >> At compilation time itself.

-------------------------------------------------

v_dt := 1524585391; --This current EPOCH Date and time value (Please refer link: https://www.epochconverter.com/ )

begin

  update table_name

     set timestamp = :a

   where timestamp = 0

    and Entry_Dt between :a - 86400*1.2 and :a

    using v_dt;

    

end;

-----------------------------------------

Can you please suggest, what's wrong with this update statement.

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on May 22 2018
Added on Apr 24 2018
1 comment
198 views