PL/SQL (MOSC)

MOSC Banner

Strange Issue in PL/SQL Block

edited Apr 9, 2012 7:52PM in PL/SQL (MOSC) 3 commentsAnswered

Hi Friends,

We are using the below query inside our PL/SQL block:

SELECT length(MOBILE_NUM) INTO v_COUNT FROM GSM_PROFILE WHERE MOBILE_NUM=i_SDCA_MDN;

the above query returns "NO DATA FOUND" exception.

But while running the same query in SQL window (below one) perfectly it return values

SELECT length(MOBILE_NUM) FROM GSM_PROFILE WHERE MOBILE_NUM='1111111111';

Output : 10

We have verified our input parameter in stored procedure and printed the same in DBMS_OUTPUT window. The input passing to the stored procedure is perfect. Eventhough its throwing "NO DATA FOUND" exception.

CREATE TABLE GSMPROFILE

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