Subject | Re: [firebird-support] SQL help needed |
---|---|
Author | Milan Babuskov |
Post date | 2006-09-07T16:37:48Z |
tickerboo2002 wrote:
on the first record it finds.
--
Milan Babuskov
http://swoes.blogspot.com/
http://www.flamerobin.org
> Inside a Trigger, I'd like to perform an update if a select returns noThe usual way is to use NOT EXISTS. It works fastest since it bails out
> rows. Something like the following:
>
> UPDATE foo f
> SET f.Finished=1
> where f.ID=100 and count( select bar_Id from bar where blah )=0
>
> What's the usual way of doing this?
on the first record it finds.
--
Milan Babuskov
http://swoes.blogspot.com/
http://www.flamerobin.org