Subject | Re: check if a select return value |
---|---|
Author | Ronaldo Rezende Vilela Luiz |
Post date | 2003-09-10T11:55:27Z |
When I don't assign any value to a variable, the default value for
integer are null ? and for varchar? where can I see the default value
for the types?
--- In firebird-support@yahoogroups.com, "Martijn Tonies"
<m.tonies@u...> wrote:
integer are null ? and for varchar? where can I see the default value
for the types?
--- In firebird-support@yahoogroups.com, "Martijn Tonies"
<m.tonies@u...> wrote:
> Hi,doesn't
>
> > Hi, I have this select in my stored procedure
> >
> > select ID_CURSO, ID_PARCEIRO from MATRICULA
> > where ID_CONTRATO = :ID_CONTRATO
> > into :CURSO_ANTERIOR, :ID_PARCEIRO
> >
> > How can I check if the select has been returned a value?
> >
> > the variables CURSO_ANTERIOR and ID_PARCEIRO are integers and
> > have any assignment of values before this select.my
> >
> > If my select doesn't return any value, what will be assigned to
> > variables?
>
> The previously assigned value.
>
> It if was NULL, it stays NULL. If it was X, it stays X.
>
> With regards,
>
> Martijn Tonies
> Database Workbench - the developer tool for InterBase & Firebird
> Upscene Productions
> http://www.upscene.com