Does the procedure run?

Este forum é dedicado a códigos errados que se encontram por aí, ou seja, coisas que não se deve fazer de jeito nenhum! Não coloque neste forum dúvidas! (apenas situações bizarras do nosso dia a dia :-)
Post Reply
Trevisolli
Moderador
Moderador
Posts: 2016
Joined: Wed, 12 Jan 2005 3:25 pm
Location: Araraquara - SP
Abraço,

Trevisolli
OCA Oracle PL/SQL Developer Certified Associate
OCP Oracle Forms Developer Certified Professional
Araraquara-SP

Good morning guys.

follows an excerpt that I have seen long ago and, I decided to post:

Select all

 
begin 
	default_value('0','global.cod_empregado'); 
	if :global.cod_empregado <> '0' then 
    	p_popula_empregado; 
	end if; 
end; 

Populate the employee? :)

Personal, only 1 information ...
There are no global calls in this case, so I posted it here.
Otherwise, the default_value would be replaced by the supplied value, okay?.
User avatar
dr_gori
Moderador
Moderador
Posts: 5024
Joined: Mon, 03 May 2004 3:08 pm
Location: Portland, OR USA
Contact:
Thomas F. G

Você já respondeu a dúvida de alguém hoje?
https://glufke.net/oracle/search.php?search_id=unanswered

Maybe this makes sense yes. See:
* If the default_value had not been placed in the IF case if this variable has not been created by another program. That is, it placed the default_value to avoid the error.
* If any other program has set the: global.cod_empregate, hence I would enter IF

Remember that the global variables are per session. If another form set, maybe still be in memory, even if this proorgama not seven that global.
Post Reply
  • Information
  • Who is online

    Users browsing this forum: No registered users and 3 guests