PL/SQL (MOSC)

MOSC Banner

value starting with zeros '0' (eg. 012345, 0005677882) is not getting updated in oracle.

in PL/SQL (MOSC) 3 commentsAnswered

We have a concurrent program to create/update/delete the item cross references in Oracle apps (11i). We are using EXECUTE IMMEDIATE to execute the update statement.

When we are updating the table through database we are able to update the values with zero but not through concurrent program.


 v_statement_upd :=         'UPDATE mtl_cross_references mcr';

   v_statement_upd := v_statement_upd||'  set mcr.cross_reference = '||to_char(v_rec.cross_reference_value1)||',mcr.last_updated_by = '||v_rec.last_updated_by||',mcr.last_update_date = SYSDATE';

   v_statement_upd := v_statement_upd||' where 1 = 1';

Howdy, Stranger!

Log In

To view full details, sign in to My Oracle Support Community.

Register

Don't have a My Oracle Support Community account? Click here to get started.

Category Leaderboard

Top contributors this month

New to My Oracle Support Community? Visit our Welcome Center

MOSC Help Center