testing if the field is null

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
lodvini
Rank: Estagiário Sênior
Rank: Estagiário Sênior
Posts: 11
Joined: Thu, 16 Jun 2005 7:59 am
Location: Sapiranga - RS

Select all

 
if not( :G.ARTIGO IS NOT NULL ) then 
  message( 'Erro - '||:system.trigger_field ); 
  message(' '); 
  clear_message; 
  raise erro; 
end if; 
Why not just test "IF Field IS NULL" ???
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

In algebra, this is known as "double denial"
something like this:
~~ p <=> p
"no p is equivalent AP "
: D
NaPraia
Rank: Analista Júnior
Rank: Analista Júnior
Posts: 88
Joined: Fri, 22 Feb 2008 8:24 am
Location: Floripa - SC

Why not just test "IF field is null" ???
That is so easy, clear and clean.
Post Reply
  • Information
  • Who is online

    Users browsing this forum: No registered users and 12 guests