Subject | Re: Select + Update in a single SPROC? |
---|---|
Author | hartertobak |
Post date | 2007-11-23T14:33:54Z |
--- In firebird-support@yahoogroups.com, Lucas Franzen <luc@...> wrote:
FROM TBLONE
WHERE SEARCHTERM = :SEARCHTERM
INTO :getid, :idcount;
>SELECT ID, SEARCHCOUNT
>
> > idcount = null;
>
> [snip]
>
> > if (getid IS NOT NULL) then
> > begin
> > idcount = idcount + 1;
>
> If you initialize idocunt with NULL you can add whatever y<ou want it
> will stay null!
> Null is null (unknown), not zero.
>
> Luc.
>
FROM TBLONE
WHERE SEARCHTERM = :SEARCHTERM
INTO :getid, :idcount;