Click here to Skip to main content
15,909,652 members
Home / Discussions / Database
   

Database

 
QuestionTable not updated when value not set Pin
lionelcyril29-Dec-11 19:36
lionelcyril29-Dec-11 19:36 
I have created a SP and using Oracle 11g.

I have declared a variable in a procedure as:
SQL
v_juriscode	billingcycle.juriscode%TYPE;
(an existing type)
.
.
.
I have a condition as
SQL
IF n_count > 1
   	THEN
		v_juriscode   := 'LODESTAR';		
	ELSE
          IF n_count = 1
          THEN
            SELECT pm.dejuriscode
                INTO v_juriscode   
                FROM pwrline.lsmdphysicalmeter pm
                WHERE pm.decommdevid = V_COMMDEVID;
          END IF;
	END IF;
		UPDATE DEBADGERPROGLOG SET JURISCODE=v_juriscode 
                WHERE UIDBADGERPROGLOG = V_UID;


When the condition c_count = 0 is encountered I have not set the value for juriscode (ie i hv not mentioned that condition).
I have noticed that when no value is set to the v_juriscode variable the table row is not updated, I wanted to know why this happens.

Thanks in advance.
Lionel Noronha

AnswerRe: Table not updated when value not set Pin
Md. Marufuzzaman29-Dec-11 21:01
professionalMd. Marufuzzaman29-Dec-11 21:01 
AnswerRe: Table not updated when value not set Pin
jschell30-Dec-11 9:04
jschell30-Dec-11 9:04 
QuestionHow to auto detect row version, if some one update manually Pin
Md. Marufuzzaman29-Dec-11 19:25
professionalMd. Marufuzzaman29-Dec-11 19:25 
SuggestionRe: How to auto detect row version, if some one update manually Pin
Jan Steyn29-Dec-11 20:59
Jan Steyn29-Dec-11 20:59 
GeneralRe: How to auto detect row version, if some one update manually Pin
Md. Marufuzzaman29-Dec-11 21:28
professionalMd. Marufuzzaman29-Dec-11 21:28 
GeneralRe: How to auto detect row version, if some one update manually Pin
PIEBALDconsult30-Dec-11 4:13
mvePIEBALDconsult30-Dec-11 4:13 
AnswerRe: How to auto detect row version, if some one update manually Pin
Eddy Vluggen30-Dec-11 5:26
professionalEddy Vluggen30-Dec-11 5:26 
QuestionGrant permissions to role on another role Pin
Danzy8329-Dec-11 13:27
Danzy8329-Dec-11 13:27 
AnswerRe: Grant permissions to role on another role Pin
coded00729-Dec-11 15:23
professionalcoded00729-Dec-11 15:23 
QuestionHow Can We Avoid Creatng Closed Pathes in our Design Pin
yousefshokati29-Dec-11 1:15
yousefshokati29-Dec-11 1:15 
AnswerRe: How Can We Avoid Creatng Closed Pathes in our Design Pin
Chris Meech29-Dec-11 7:04
Chris Meech29-Dec-11 7:04 
AnswerRe: How Can We Avoid Creatng Closed Pathes in our Design Pin
SilimSayo29-Dec-11 8:43
SilimSayo29-Dec-11 8:43 
AnswerRe: How Can We Avoid Creatng Closed Pathes in our Design Pin
Eddy Vluggen29-Dec-11 8:54
professionalEddy Vluggen29-Dec-11 8:54 
GeneralRe: How Can We Avoid Creatng Closed Pathes in our Design Pin
yousefshokati30-Dec-11 22:56
yousefshokati30-Dec-11 22:56 
AnswerRe: How Can We Avoid Creatng Closed Pathes in our Design Pin
Eddy Vluggen31-Dec-11 4:31
professionalEddy Vluggen31-Dec-11 4:31 
QuestionSending Column Name From SP to C# App Pin
AmbiguousName28-Dec-11 1:04
AmbiguousName28-Dec-11 1:04 
AnswerRe: Sending Column Name From SP to C# App Pin
hypermellow28-Dec-11 2:03
professionalhypermellow28-Dec-11 2:03 
AnswerRe: Sending Column Name From SP to C# App Pin
AmbiguousName28-Dec-11 2:18
AmbiguousName28-Dec-11 2:18 
AnswerRe: Sending Column Name From SP to C# App Pin
Karthik Harve28-Dec-11 18:44
professionalKarthik Harve28-Dec-11 18:44 
AnswerAS Pin
Luc Pattyn28-Dec-11 23:41
sitebuilderLuc Pattyn28-Dec-11 23:41 
GeneralRe: AS PinPopular
SilimSayo29-Dec-11 4:44
SilimSayo29-Dec-11 4:44 
Questionhow to loop over results of a select statement ? Pin
yousefshokati27-Dec-11 19:40
yousefshokati27-Dec-11 19:40 
AnswerRe: how to loop over results of a select statement ? Pin
gvprabu27-Dec-11 21:25
gvprabu27-Dec-11 21:25 
AnswerRe: how to loop over results of a select statement ? Pin
jschell29-Dec-11 14:39
jschell29-Dec-11 14:39 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.