Subject | Re: [IBO] Wrong record.. |
---|---|
Author | Helen Borrie |
Post date | 2001-08-14T17:07:48Z |
At 10:56 AM 14-08-01 -0600, you wrote:
IF (EXISTS(SELECT....))
or
IF (NOT(EXISTS(SELECT...)))
but only in procedure language, of course.
In a dataset, test the IsEmpty property.
bye
Helen
All for Open and Open for All
InterBase Developer Initiative ยท http://www.interbase2000.org
_______________________________________________________
>Ok, makes sense. So If you are just returning one row, no suspend needed,Definitely the last question before sleep! <g>
>the EXIT would suffice in my case..
>
>Im still not clear about the null thing.. In a stored proc, I thought the
>only way to know if a select statement didnt find any result was to look at
>a key value and see if its NULL. If so, you would know if a row was
>returned. Not so? If not, how do you know (using raw sql) if no row was
>returned??
IF (EXISTS(SELECT....))
or
IF (NOT(EXISTS(SELECT...)))
but only in procedure language, of course.
In a dataset, test the IsEmpty property.
bye
Helen
All for Open and Open for All
InterBase Developer Initiative ยท http://www.interbase2000.org
_______________________________________________________